/* RUMMY — main stylesheet. "Violet pulse on white parchment" (ref: refero/SpatialChat).
   An airy, confident SaaS marketing surface: almost paper-white canvas, ONE rationed violet accent
   (primary CTAs, the announcement bar, badges and active states only — everything else grayscale),
   weight carried by big Manrope display type, soft rectangles (16px cards, 12px buttons), hairline
   #e5e7eb borders and a barely-there 6% shadow. Composition: centered hero stack → trust strip →
   alternating two-column feature blocks → soft card grids. Historic token names kept for compatibility. */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('/assets/fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('/assets/fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('/assets/fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('/assets/fonts/manrope-800.woff2') format('woff2'); }

:root {
  --bg: #ffffff;
  --paper: #fcfcfd;
  --tint: #f4f3fc;          /* faint violet-tinted band for section separation */
  --surface: #ffffff;
  --surface-2: #f7f7fb;
  --ink: #0b0d13;           /* headlines, deepest */
  --text: #0b0d13;
  --slate: #475569;         /* body copy */
  --muted: #475569;
  --mid: #5c5c5c;           /* muted labels, list markers */
  --steel: #6b7280;         /* helper, placeholders */
  --mist: #d1d5db;
  --line: #e5e7eb;          /* hairline */
  --line-2: #dfe2e7;

  --violet: #5727e7;        /* the one accent */
  --violet-700: #4a1fd0;
  --violet-100: #ece7fd;
  --violet-tint: #f2f2ff;

  /* legacy names repurposed */
  --green: #5727e7; --green-deep: #4a1fd0; --green-glow: #6b46ff;
  --gold: #5727e7; --gold-soft: var(--violet-tint); --gold-text: #5727e7; --on-gold: #ffffff; --mint: #5727e7;

  --hero: var(--bg);
  --shadow: 0 1px 2px rgba(11,13,19,.04), 0 10px 30px -18px rgba(11,13,19,.18);
  --shadow-lift: 0 2px 4px rgba(11,13,19,.05), 0 18px 40px -20px rgba(11,13,19,.22);
  --radius: 16px; --r-btn: 12px; --r-sm: 10px;
  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: var(--bg); font: 16.5px/1.65 var(--font-body); padding-bottom: 84px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.03em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; color: var(--slate); }
strong, b { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--violet); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Announcement bar (violet) + header ---------- */
.age-strip { background: var(--violet); color: #ece7fd; font-size: .82rem; text-align: center; padding: 9px 16px; }
.age-strip a { color: #fff; font-weight: 700; text-decoration: underline; }
.age-strip b { background: #fff; color: var(--violet); border-radius: 999px; padding: 1px 9px; margin-right: 6px; font: 800 .72rem var(--font-head); letter-spacing: .02em; }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font: 800 1.35rem/1 var(--font-head); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--violet); font-weight: 800; }
.main-nav { display: none; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-tools .btn { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--violet); color: var(--violet); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ''; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }
.drawer { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.drawer.open { display: block; }
.drawer ul { list-style: none; margin: 0; padding: 8px 22px 16px; }
.drawer a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
@media (min-width: 900px) {
  .main-nav { display: flex; gap: 2px; margin: 0 auto; }
  .main-nav a { color: var(--slate); text-decoration: none; font-weight: 600; font-size: .94rem; padding: 9px 14px; border-radius: 9px; }
  .main-nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
  .menu-btn, .drawer, .drawer.open { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px; border-radius: var(--r-btn); border: 1px solid transparent; cursor: pointer; font: 700 1rem var(--font-head); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease; }
.btn:hover { text-decoration: none; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-gold { background: var(--violet); color: #fff; box-shadow: 0 1px 2px rgba(87,39,231,.3), 0 10px 24px -12px rgba(87,39,231,.6); }
.btn-gold:hover { background: var(--violet-700); color: #fff; transform: translateY(-1px); }
.btn-tg { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-tg:hover { border-color: var(--violet); color: var(--violet); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }

/* ---------- Hero (centered stack) ---------- */
.hero { text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(60% 50% at 50% 0%, var(--violet-tint), transparent 70%); }
.hero .wrap { max-width: 880px; padding-top: 60px; padding-bottom: 52px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font: 700 .76rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--steel); background: var(--surface); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin: 0 auto 24px; box-shadow: var(--shadow); }
.eyebrow b { color: var(--violet); background: var(--violet-100); border-radius: 999px; padding: 1px 8px; font-size: .72rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); letter-spacing: -.035em; max-width: 16ch; margin: 0 auto .4em; }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero .lead { font-size: 1.16rem; color: var(--slate); max-width: 600px; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.chips li { font-size: .82rem; color: var(--steel); }
.chips li + li::before { content: '·'; margin-right: 8px; color: var(--mist); }
.chips b { color: var(--ink); font-weight: 700; }
.hero-art { display: none; }

/* ---------- Trust strip (app "logo wall") ---------- */
.trust { padding: 34px 0 10px; }
.trust-label { text-align: center; font: 700 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .16em; color: var(--steel); margin: 0 0 18px; }
.trust-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.trust-strip::-webkit-scrollbar { display: none; }
.trust-strip img { height: 56px; width: auto; border-radius: var(--r-sm); border: 1px solid var(--line); flex: none; }
@media (min-width: 900px) { .trust-strip { justify-content: center; flex-wrap: wrap; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--tint); }
.section-head { max-width: 680px; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font: 700 .74rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ''; width: 18px; height: 2px; background: var(--violet); border-radius: 2px; }
.section-head.center .kicker { display: inline-flex; }
.prose { max-width: 760px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; color: var(--slate); }
.prose li::marker { color: var(--violet); }

/* ---------- Alternating two-column feature blocks ---------- */
.feature { display: grid; gap: 28px; align-items: center; padding: 26px 0; }
.feature + .feature { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 44px; }
.feature-media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.feature-media img { width: 100%; display: block; }
.feature-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .4em; }
.feature-text p { font-size: 1.05rem; }
.feature-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--violet); }
.feature-link svg { width: 16px; height: 16px; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 36px 0; }
  .feature.rev .feature-text { order: 2; }
}

/* ---------- Generic cards & grids ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--violet); }
.card p:last-child { margin-bottom: 0; }

/* ---------- App directory (soft poster cards, grouped) ---------- */
.app-cat { margin-top: 44px; }
.app-cat:first-of-type { margin-top: 0; }
.app-cat > h3 { font: 700 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--steel); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.app-cat > h3 span { color: var(--violet); background: var(--violet-100); border-radius: 999px; padding: 1px 9px; font-size: .74rem; }
.appc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { .appc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .appc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.appc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease; }
.appc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.appc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.appc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.appc:hover .appc-media img { transform: scale(1.04); }
.appc-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.appc-body h3 { font: 800 1.04rem var(--font-head); margin: 0; letter-spacing: -.02em; color: var(--ink); }
.appc-tag { font-size: .84rem; color: var(--slate); margin: 0; flex: 1; line-height: 1.5; }
.appc-dl { margin-top: 8px; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font: 700 .82rem var(--font-head); color: var(--violet); text-decoration: none; }
.appc-dl svg { width: 15px; height: 15px; }
.appc-dl:hover { text-decoration: underline; }

/* Homepage app-store directory: compact left-aligned hero + sticky category bar over one grid. */
.hero-compact { text-align: left; }
.hero-compact .wrap { max-width: 820px; padding-top: 46px; padding-bottom: 30px; }
.hero-compact .eyebrow { margin: 0 0 20px; }
.hero-compact h1 { font-size: clamp(2.05rem, 5vw, 3.15rem); margin: 0 auto .35em 0; max-width: 20ch; }
.hero-compact .lead { margin: 0; max-width: 640px; }
.hero-compact .chips { justify-content: flex-start; margin-top: 20px; }
.section.store { padding-top: 40px; }
.store .section-head { margin-bottom: 16px; }
.store-bar { position: sticky; top: 68px; z-index: 40; display: grid; gap: 12px; padding: 14px 0; margin-bottom: 24px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .store-bar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.store-bar .search input { min-height: 46px; }
.store-bar .filters { margin: 0; }
.appfilters button span { margin-left: 5px; font-size: .72rem; opacity: .65; font-weight: 700; }
.appfilters button[aria-pressed="true"] span { opacity: .85; }
.store-note { margin: 26px 0 0; font-size: .86rem; line-height: 1.6; color: var(--slate); max-width: 820px; }
/* .appc sets display:flex, which beats the UA [hidden] rule — restore hiding for the JS filter. */
.appc[hidden] { display: none; }
.home-legal { margin: 24px 0 0; font-size: .85rem; line-height: 1.6; color: var(--slate); }

/* ---------- Game studios row ---------- */
.studios { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.studio { font: 600 .8rem var(--font-head); color: var(--slate); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: var(--surface); }

/* ---------- Table of contents ---------- */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: var(--surface); box-shadow: var(--shadow); }
.toc h2 { font-size: 1.2rem; margin-bottom: .6em; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
.toc li { padding: 4px 0; break-inside: avoid; }
.toc li::marker { color: var(--violet); font-weight: 700; }
.toc a { color: var(--slate); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--violet); }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 44px; } }

/* ---------- Game catalogue ---------- */
.tools { display: grid; gap: 12px; margin-bottom: 24px; }
.search { position: relative; }
.search input { width: 100%; min-height: 50px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 16px 0 46px; font: 500 1rem var(--font-body); box-shadow: var(--shadow); }
.search input::placeholder { color: var(--steel); }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-100); }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 19px; height: 19px; color: var(--steel); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filters button { flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--slate); font: 600 .9rem var(--font-head); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .tools { grid-template-columns: 1fr auto; align-items: center; } }
.game { position: relative; }
.game a { display: flex; flex-direction: column; gap: 10px; height: 100%; color: var(--ink); text-decoration: none; }
.game .art { position: relative; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.game img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); }
.game .cap { display: grid; gap: 2px; padding: 0 2px; grid-template-columns: minmax(0, 1fr); }
.game .cap > *, .game .row h3 { min-width: 0; }
.game .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game .cap h3 { font: 700 .95rem/1.25 var(--font-head); margin: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.game .arrow { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--steel); display: grid; place-items: center; font-size: 1rem; }
.game .sub { font-size: .78rem; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game .go { color: var(--violet); font-weight: 700; }
.game .hot { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--violet); color: #fff; font: 800 .6rem var(--font-head); letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; }
.game .glass { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 12px; background: linear-gradient(0deg, rgba(11,13,19,.86) 0%, rgba(11,13,19,.25) 55%, transparent 100%); opacity: 0; transition: opacity .2s ease; }
.game .glass p { font-size: .8rem; line-height: 1.45; margin: 0; color: rgba(255,255,255,.95); }
.game .glass .tag { color: #c9bbff; }
@media (hover: hover) {
  .game:hover .art, .game:focus-within .art { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--violet); }
  .game:hover .glass, .game:focus-within .glass { opacity: 1; }
  .game:hover .arrow, .game:focus-within .arrow { background: var(--violet); border-color: var(--violet); color: #fff; }
}
.tag { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); margin-bottom: 6px; }
.empty { display: none; padding: 24px; text-align: center; color: var(--slate); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty.show { display: block; }
.more-games { margin: 18px 0 6px; text-align: center; color: var(--steel); font-size: .9rem; }
.js #game-grid:not(.managed) > li:nth-child(n+5) { display: none; }
.grid-toggle { display: grid; place-items: center; width: 46px; height: 46px; margin: 18px auto 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--violet); cursor: pointer; box-shadow: var(--shadow); }
.grid-toggle:hover { border-color: var(--violet); }
.grid-toggle svg { width: 22px; height: 22px; transition: transform .25s ease; }
.grid-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .grid-toggle svg, .appc, .game .art, .game .glass { transition: none; } html { scroll-behavior: auto; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 18px 18px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 9px; background: var(--violet-100); color: var(--violet); font: 800 1rem var(--font-head); display: grid; place-items: center; }
.steps li > b:first-child { display: block; margin-bottom: 2px; color: var(--ink); }

/* ---------- Bonus / terms / tables ---------- */
.bonus { display: flex; flex-direction: column; }
.bonus .value { font: 800 1.7rem var(--font-head); color: var(--violet); margin: 2px 0 8px; letter-spacing: -.02em; }
.terms { margin: auto 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line-2); font-size: .85rem; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.terms dt { color: var(--steel); }
.terms dd { margin: 0; font-weight: 700; text-align: right; color: var(--ink); }
.tbc { display: inline-block; background: var(--violet-100); color: var(--violet-700); border: 1px solid #d6ccfb; border-radius: 6px; padding: 0 6px; font-size: .82em; font-weight: 700; }
.bonus .value .tbc { font-size: .8rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; color: var(--slate); }
th { background: var(--surface-2); font: 700 .74rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
td b, td strong { color: var(--ink); }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--violet); font-weight: 700; } .no { color: var(--steel); }

/* ---------- Callouts ---------- */
.note { border-left: 3px solid var(--violet); background: var(--violet-tint); padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 0 0 1em; font-size: .95rem; }
.warn18 { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: var(--radius); padding: 18px; margin-top: 22px; box-shadow: var(--shadow); }
.badge18 { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--violet); color: var(--violet); display: grid; place-items: center; font: 800 .9rem var(--font-head); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 14px; font-size: 1.4rem; color: var(--violet); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 20px 18px; color: var(--slate); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: 22px; padding: 40px 28px; display: grid; gap: 18px; align-items: center; text-align: center; }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.72); margin: 0; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta-band .btn-gold { background: var(--violet); }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; text-align: left; padding: 48px 48px; } .cta-band .btns { justify-content: flex-end; } }

/* ---------- Inner page header + layout ---------- */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: .3em; }
.page-head p { color: var(--slate); max-width: 680px; margin: 0; }
.crumbs { font-size: .78rem; margin-bottom: 18px; color: var(--steel); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--slate); text-decoration: none; }
.page-body { display: grid; gap: 32px; padding-block: 40px 56px; }
.page-body .prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.page-body .prose h2:first-child { margin-top: 0; }
.page-body .prose h3 { margin-top: 1.2em; }
.updated { font-size: .78rem; color: var(--steel); margin-top: 12px; }
.lang-switch { color: var(--violet); font-weight: 600; }
.aside { display: grid; gap: 16px; align-content: start; }
.aside .card h3 { font-size: 1rem; }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); }
.aside li a:hover { color: var(--violet); }
.aside .btn { width: 100%; margin-top: 8px; }
.wrap.prose { max-width: 1140px; }
.wrap.prose > * { max-width: 760px; }
.game-hero { display: grid; gap: 18px; align-items: center; }
.game-hero img { width: 160px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 700px) { .game-hero { grid-template-columns: auto 1fr; } }
@media (min-width: 960px) { .page-body { grid-template-columns: minmax(0, 1fr) 300px; } .aside { position: sticky; top: 88px; } }
.page-body > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .game-grid > *, .appc-grid > * { min-width: 0; }
.prose .game-grid { padding-left: 0; }
.page-body .btn, .hero-cta .btn { white-space: normal; text-align: center; max-width: 100%; height: auto; padding-block: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); color: var(--slate); padding: 56px 0 28px; }
.site-footer a { color: var(--slate); text-decoration: none; }
.site-footer a:hover { color: var(--violet); }
.foot-grid { display: grid; gap: 30px; }
.foot-grid h3 { color: var(--ink); font: 700 .78rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-brand img { width: 46px; height: 46px; margin-bottom: 12px; }
.foot-social { display: flex; gap: 10px; margin-top: 14px; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 22px; display: grid; gap: 12px; font-size: .84rem; color: var(--steel); }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Sticky download bar ---------- */
.dl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.dl-bar .inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.dl-bar .who { display: none; align-items: center; gap: 10px; margin-right: auto; }
.dl-bar .who img { width: 38px; height: 38px; }
.dl-bar .who b { display: block; font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.dl-bar .who small { color: var(--steel); font-size: .78rem; }
.dl-bar .btn { flex: 1; padding: 0 10px; font-size: .95rem; gap: 6px; min-width: 0; }
.dl-bar .btn svg { width: 18px; height: 18px; }
@media (min-width: 800px) { .dl-bar .who { display: flex; } .dl-bar .btn { flex: none; min-width: 220px; font-size: 1rem; } }
@media (max-width: 379px) { .dl-bar .inner { gap: 8px; } .dl-bar .btn { font-size: .82rem; padding: 0 8px; gap: 4px; } .dl-bar .btn svg { width: 15px; height: 15px; } }

/* ---------- Floating live chat ---------- */
.cs { position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 55; }
.cs-btn { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--violet); color: #fff; box-shadow: 0 10px 24px -8px rgba(87,39,231,.55); }
.cs-btn svg { width: 26px; height: 26px; }
.cs-btn::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--violet); animation: ping 2s ease-out infinite; }
@keyframes ping { to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cs-btn::after { animation: none; } }

/* ---------- Events (promotions) ---------- */
.events { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.event { scroll-snap-align: start; }
.event a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.event a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.ev-banner { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.ev-body { padding: 14px 16px 16px; }
.ev-body h3 { font-size: 1.05rem; margin: 0 0 2px; }
.ev-body p { font-size: .85rem; color: var(--slate); margin: 0 0 6px; }
.ev-body .go { font-size: .8rem; font-weight: 700; color: var(--violet); }
@media (min-width: 760px) { .events { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.ev-section { padding-top: 8px; }
.ev-section .ev-banner { border-radius: var(--r-sm); margin: 4px 0 14px; }
.ev-section .lead-in { font-size: 1.02rem; }
.vip-table { max-height: 520px; overflow-y: auto; }
.vip-table thead th { position: sticky; top: 0; z-index: 1; }

/* ---------- "Why" posters ---------- */
.why-poster { width: 100%; aspect-ratio: 2 / 1; border-radius: var(--r-sm); margin-bottom: 14px; object-fit: cover; border: 1px solid var(--line); }
.why-poster.slot { display: grid; place-items: center; background: var(--surface-2); border: 1px dashed var(--line-2); color: var(--steel); font-size: .85rem; }

/* ---------- Wagering calculator & widgets ---------- */
.calc { margin: 8px 0 18px; }
.calc-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .9rem; color: var(--slate); }
.calc-presets span { width: 100%; }
.calc-presets button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 .88rem var(--font-head); cursor: pointer; }
.calc-presets button:hover, .calc-presets button:focus-visible { border-color: var(--violet); }
.calc-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-field { display: grid; gap: 4px; }
.calc-field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.calc-field input, .calc-field select { min-height: 48px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 12px; font: 500 1rem var(--font-body); }
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-100); }
.calc-field small { color: var(--steel); font-size: .8rem; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.calc-out div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 12px 14px; }
.calc-out span { display: block; color: var(--steel); font-size: .8rem; }
.calc-out b { font-family: var(--font-head); font-size: 1.35rem; color: var(--violet); }
.calc-out b.neg { color: #d6336c; }
.calc-verdict { margin: 12px 0 0; font-weight: 600; color: var(--ink); }
.tp-card { display: grid; gap: 4px; }
.tp-card label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.tp-card div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-card select, .tp-grid .calc-field select { min-height: 48px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 12px; font: 500 1rem var(--font-body); }
.tp-card select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-100); }
.ab-range[hidden] { display: none; }
.chart { margin: 18px 0 22px; }
.chart img { width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line); }
.chart figcaption { margin-top: 8px; font-size: .9rem; color: var(--steel); }

/* ---------- Hindi ---------- */
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.35; letter-spacing: 0; }
:lang(hi) body, :lang(hi) .prose { line-height: 1.85; }

/* header CTA hidden on the smallest screens (the sticky bar carries it there) */
@media (max-width: 479px) { .header-cta { display: none; } }
.header-cta svg { width: 17px; height: 17px; }

/* ---------- Brand logo sizing (user wordmark) ---------- */
.brand img { height: 30px; width: auto; }
.foot-brand img { height: 40px; width: auto; }
.dl-bar .who img { height: 34px; width: auto; }

/* ---------- Marquee (auto-scrolling loops) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 16px; width: max-content; animation: marquee var(--dur, 42s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-app { height: 66px; width: 66px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); flex: none; box-shadow: var(--shadow); }
.marquee .studio { flex: none; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }
