/* =========================================================
   Bingo 101 — site stylesheet
   Light-first, ruby-accent, technical-grotesk
   Surface: #f4f6f2 page / #ffffff cards / #0d1f1a ink
   Accent: #c8264a ruby VIP (single, locked)
   Fonts: Inter Display + Inter Tight + JetBrains Mono
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --surface: #f4f6f2;
  --surface-2: #ffffff;
  --surface-3: #f8faf6;
  --ink: #0d1f1a;
  --ink-2: #1f2f2a;
  --muted: #5a6a64;
  --line: rgba(13, 31, 26, 0.10);
  --line-strong: rgba(13, 31, 26, 0.18);
  --accent: #c8264a;
  --accent-2: #a0183a;
  --accent-tint: rgba(200, 38, 74, 0.08);
  --accent-glass: rgba(200, 38, 74, 0.12);
  --gold: #b8923a;
  --shadow-1: 0 1px 2px rgba(13, 31, 26, 0.06), 0 2px 6px rgba(13, 31, 26, 0.04);
  --shadow-2: 0 4px 14px rgba(13, 31, 26, 0.08), 0 2px 4px rgba(13, 31, 26, 0.04);
  --shadow-3: 0 18px 42px rgba(13, 31, 26, 0.18);

  /* provider shelf tints */
  --prov-evo: #f1f3f7;
  --prov-jili: #fdf6e7;
  --prov-pg: #ecf5ef;
  --prov-fachai: #f7f0ea;
  --prov-pp: #eef0f4;
  --prov-yb: #f6f1e7;
  --prov-kb: #e8f0f2;
  --prov-orig: #f0eaf2;

  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-chip: 999px;
  --container: 1240px;
  --pad-x: clamp(16px, 4vw, 32px);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: 'Inter Display', 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0.25em 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

/* ---------- layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); width: 100%; }
.stack > * + * { margin-top: var(--stack, 16px); }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 12px;
}
.lede { font-size: 18px; color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.divider-line { height: 1px; background: var(--line); width: 100%; margin: 32px 0; }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--soft { background: var(--surface-3); }
.section--ink { background: var(--ink); color: #e7ece9; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #ffffff; }
.section--ink .lede { color: rgba(255,255,255,0.78); }
.section--ink .muted, .section--ink .small { color: rgba(255,255,255,0.62); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 80ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(200, 38, 74, 0.32);
}
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(13,31,26,0.04); }
.btn--ink {
  background: var(--ink);
  color: #ffffff;
}
.btn--ink:hover { background: #1a2f28; }
.btn--sm { padding: 9px 14px; font-size: 13px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ---------- chip / pill ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--accent { background: var(--accent); color: #fff; border-color: transparent; }
.chip--tint { background: var(--accent-tint); color: var(--accent-2); border-color: transparent; }
.chip--ghost { background: transparent; }

/* ---------- card ---------- */
.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-1);
}
.card--soft { background: var(--surface-3); }
.card--ink { background: var(--ink); color: #fff; border-color: transparent; }
.card--ink h3, .card--ink h4 { color: #fff; }
.card--ink p { color: rgba(255,255,255,0.78); }
.card--glass {
  background: linear-gradient(135deg, rgba(200,38,74,0.10), rgba(200,38,74,0.03));
  border: 1px solid rgba(200, 38, 74, 0.32);
  border-radius: var(--radius-card);
  padding: 24px;
  backdrop-filter: blur(8px);
}
.loose-card {
  background: linear-gradient(135deg, rgba(200,38,74,0.06) 0%, rgba(200,38,74,0.02) 100%);
  border: 1px solid rgba(200, 38, 74, 0.22);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  position: relative;
}
.loose-card .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(200,38,74,0.18);
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}
.loose-card h4 { font-size: 17px; margin-bottom: 6px; }
.loose-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 242, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  min-height: 68px;
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter Display', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark .mark-img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: var(--accent);
  background-image: url('/assets/img/brand/header-mark-v6-3ca5ce78.png?v=12');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter Display', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(200,38,74,0.28);
}
.brand-mark .brand-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.brand-mark .brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(13,31,26,0.05); }
.main-nav a.cta {
  background: var(--accent);
  color: #fff;
  margin-left: 8px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(200,38,74,0.28);
}
.main-nav a.cta:hover { background: var(--accent-2); }
.main-nav a.is-active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 0;
  position: relative;
  z-index: 300;
}
.hamburger .bars { display: block; width: 22px; height: 16px; margin: 0 auto; position: relative; }
.hamburger .bars::before,
.hamburger .bars::after,
.hamburger .bars > span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}
.hamburger .bars::before { top: 0; }
.hamburger .bars > span { top: 7px; }
.hamburger .bars::after { top: 14px; }
.hamburger[aria-expanded="true"] .bars::before { top: 7px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] .bars > span { opacity: 0; }
.hamburger[aria-expanded="true"] .bars::after { top: 7px; transform: rotate(-45deg); }

/* drawer (mobile) */
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  background: var(--surface-2);
  z-index: 250;
  transform: translateX(100%);
  transition: transform 220ms ease;
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.mobile-drawer nav { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a { padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.mobile-drawer nav a:hover { background: rgba(13,31,26,0.05); }
.mobile-drawer nav a.cta { background: var(--accent); color: #fff; margin-top: 12px; text-align: center; }
.drawer-close {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
}
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(13,31,26,0.4); z-index: 240;
  opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* mobile lock body */
body.has-drawer { overflow: hidden; }

/* ---------- hero (split-axis timeline) ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 80px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(200,38,74,0.10), transparent);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.timeline-rail {
  border-left: 2px solid rgba(200,38,74,0.25);
  padding-left: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline-rail .step { position: relative; }
.timeline-rail .step::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-rail .step .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 500;
}
.timeline-rail .step h4 { margin: 0 0 4px; font-size: 16px; }
.timeline-rail .step p { margin: 0; color: var(--ink-2); font-size: 14px; }

.hero h1 { font-size: clamp(36px, 5.5vw, 60px); margin: 0 0 16px; }
.hero .lede { font-size: 18px; max-width: 38ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.hero-meta span strong { color: var(--ink); font-weight: 600; margin-right: 4px; }

.hero-card {
  background: linear-gradient(135deg, rgba(200,38,74,0.10) 0%, rgba(200,38,74,0.02) 100%);
  border: 1px solid rgba(200,38,74,0.32);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  backdrop-filter: blur(6px);
}
.hero-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-chip);
  margin-bottom: 14px;
}
.hero-card h3 { font-size: 22px; margin: 0 0 10px; }
.hero-card p { color: var(--ink-2); margin: 0 0 18px; font-size: 15px; }
.hero-card .steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.hero-card .steps li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(200,38,74,0.18);
  border-radius: 10px;
}
.hero-card .steps li::before {
  content: '';
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}
.hero-card .steps li:nth-child(1)::before { content: '1'; }
.hero-card .steps li:nth-child(2)::before { content: '2'; }
.hero-card .steps li:nth-child(3)::before { content: '3'; }
.hero-card .meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(200,38,74,0.32);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.hero-card .meta strong { color: var(--ink); font-weight: 600; }

/* ---------- fact strip ---------- */
.fact-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 18px 0;
}
.fact-strip .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact-strip .fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact-strip .fact .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-strip .fact .v { font-family: 'Inter Display', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); }

/* ---------- product screenshot rail ---------- */
.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.screenshot-rail .shot {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}
.screenshot-rail .shot .img {
  aspect-ratio: 9 / 16;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.screenshot-rail .shot .img svg { width: 56%; height: 56%; }
.screenshot-rail .shot .img.bingo { background: linear-gradient(160deg, #1a4d3a 0%, #0d1f1a 100%); }
.screenshot-rail .shot .img.rummy { background: linear-gradient(160deg, #5a1c2a 0%, #2a0d13 100%); }
.screenshot-rail .shot .img.slots { background: linear-gradient(160deg, #6a4d1a 0%, #2a1d0a 100%); }
.screenshot-rail .shot .img.live { background: linear-gradient(160deg, #1a3d5a 0%, #0d1f33 100%); }
.screenshot-rail .shot .caption { padding: 14px 16px; }
.screenshot-rail .shot .caption h4 { font-size: 15px; margin: 0 0 4px; }
.screenshot-rail .shot .caption p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- feature split text ---------- */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.feature-split.reverse > .feat-text { order: 2; }
.feature-split.reverse > .feat-media { order: 1; }
.feat-text h2 { margin-bottom: 14px; }
.feat-text p { color: var(--ink-2); font-size: 16px; line-height: 1.65; max-width: 56ch; }
.feat-text .feat-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.feat-text .feat-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
}
.feat-text .feat-points li::before {
  content: '';
  flex: 0 0 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-tint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
}
.feat-text .feat-points li.tick::before { content: '\2713'; }
.feat-media .visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.feat-media .visual.bingo-bg { background: linear-gradient(135deg, var(--surface-2) 0%, var(--prov-pg) 100%); }
.feat-media .visual.cards-bg { background: linear-gradient(135deg, var(--surface-2) 0%, var(--prov-fachai) 100%); }
.feat-media .visual.setup-bg { background: linear-gradient(135deg, var(--surface-2) 0%, var(--accent-tint) 100%); }

/* ---------- provider shelf ---------- */
.shelf {
  border-radius: var(--radius-card);
  padding: 20px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.shelf-head h3 { margin: 0; font-size: 18px; }
.shelf-head .meta { font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.shelf-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 100ms ease, box-shadow 120ms ease, border-color 120ms ease;
  position: relative;
  text-decoration: none;
}
.shelf-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.shelf-card .thumb {
  aspect-ratio: 3 / 4;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.shelf-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.shelf-card .body { padding: 8px 10px 10px; min-height: 0; }
.shelf-card .body h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.shelf-card .evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 120ms ease, transform 120ms ease;
  min-height: 0;
}
.shelf-card:hover .evidence,
.shelf-card:focus-within .evidence {
  opacity: 1;
  transform: translateY(0);
}
.shelf-card .evidence span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  background: var(--surface-3);
  color: var(--ink-2);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.shelf--evo { background: var(--prov-evo); }
.shelf--jili { background: var(--prov-jili); }
.shelf--pg { background: var(--prov-pg); }
.shelf--fachai { background: var(--prov-fachai); }
.shelf--pp { background: var(--prov-pp); }
.shelf--yb { background: var(--prov-yb); }
.shelf--kb { background: var(--prov-kb); }
.shelf--orig { background: var(--prov-orig); }

/* ---------- app directory grid (yono apps) ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.app-tile {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform 100ms ease, box-shadow 120ms ease;
}
.app-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.app-tile .app-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-3);
  border: 1px solid var(--line);
}
.app-tile h4 {
  font-size: 13.5px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.app-tile .cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- promo triple row ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.promo-card {
  border-radius: var(--radius-card);
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.promo-card--ruby { background: var(--accent); color: #fff; border-color: transparent; }
.promo-card--ruby h3, .promo-card--ruby p { color: #fff; }
.promo-card--ruby .small { color: rgba(255,255,255,0.78); }
.promo-card--ruby .btn--ink { background: #fff; color: var(--ink); }
.promo-card--ruby .btn--ink:hover { background: #f4f6f2; }
.promo-card .promo-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.promo-card--ruby .promo-num { color: rgba(255,255,255,0.7); }
.promo-card h3 { font-size: 20px; margin: 0; }
.promo-card p { color: var(--ink-2); margin: 0; font-size: 14.5px; line-height: 1.5; }
.promo-card .promo-cta { margin-top: auto; }

/* ---------- news 3-up ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.news-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 100ms ease, box-shadow 120ms ease;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.news-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.news-card .thumb svg { width: 40%; height: 40%; opacity: 0.6; }
.news-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card .body .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.news-card .body h3 {
  font-size: 17px;
  margin: 0;
  line-height: 1.25;
  font-family: 'Inter Display', sans-serif;
}
.news-card .body p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.5; flex: 1; }
.news-card .body .read-more {
  margin-top: 4px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
}

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  transition: border-color 120ms ease;
}
.faq details[open] { border-color: rgba(200,38,74,0.32); }
.faq summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--accent);
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: transform 150ms ease;
}
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: #0a1a14;
  color: rgba(255,255,255,0.78);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #ffffff; }
.site-footer h4 {
  color: #ffffff;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-grid .brand-col { max-width: 320px; }
.footer-grid .brand-col p { color: rgba(255,255,255,0.62); font-size: 14px; line-height: 1.55; margin: 12px 0 16px; }
.footer-grid .legal-row {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 22px;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}
.footer-grid .legal-row nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-grid .legal-row nav a { font-size: 13px; }
.cookie-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: var(--radius-btn);
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
}
.cookie-btn:hover { background: rgba(255,255,255,0.06); }

/* ---------- cookie panel ---------- */
.cookie-overlay {
  position: fixed; inset: 0; background: rgba(10,26,20,0.55); z-index: 500;
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity 200ms ease;
}
.cookie-overlay.is-open { opacity: 1; pointer-events: auto; }
.cookie-panel {
  background: var(--surface-2);
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  padding: 22px;
  box-shadow: var(--shadow-3);
  max-height: 80vh;
  overflow-y: auto;
}
.cookie-panel h3 { margin: 0 0 8px; }
.cookie-panel p { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.cookie-cats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cookie-cat {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px;
  background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px;
}
.cookie-cat .info { flex: 1; min-width: 0; }
.cookie-cat h4 { font-size: 14px; margin: 0 0 2px; }
.cookie-cat p { font-size: 13px; color: var(--muted); margin: 0; }
.cookie-toggle {
  flex: 0 0 40px; height: 24px; border-radius: 999px; position: relative;
  background: var(--line-strong); border: none; cursor: pointer; transition: background 120ms ease;
}
.cookie-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: left 120ms ease;
}
.cookie-toggle[aria-checked="true"] { background: var(--accent); }
.cookie-toggle[aria-checked="true"]::after { left: 19px; }
.cookie-toggle[disabled] { opacity: 0.6; cursor: not-allowed; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- mobile sticky affiliate CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(244,246,242,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -4px 16px rgba(13,31,26,0.08);
}
.mobile-cta .btn { width: 100%; }
body { padding-bottom: 0; }
body.has-mobile-cta { padding-bottom: 72px; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  padding: 16px 0 8px;
  font-size: 13px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--muted); }

/* ---------- article (news) ---------- */
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}
.article-hero .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.article-hero h1 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 44px); }
.article-hero .lede { font-size: 17px; }
.article-hero .thumb {
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.article-hero .thumb svg { width: 50%; height: 50%; }

.article-body { max-width: 70ch; margin: 0 auto; }
.article-body h2 { font-size: clamp(22px, 2.5vw, 28px); margin-top: 1.6em; margin-bottom: 0.5em; }
.article-body h3 { font-size: 20px; margin-top: 1.4em; margin-bottom: 0.4em; }
.article-body p { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin-bottom: 1em; }
.article-body ul, .article-body ol { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  margin: 1.4em 0;
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  font-style: normal;
  color: var(--ink-2);
}
.article-body figure { margin: 1.4em 0; }
.article-body figure img { border-radius: var(--radius-card); }
.article-body figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-body .pull-image { margin: 28px 0; }
.article-body .pull-image img { border-radius: var(--radius-card); width: 100%; }
.article-body .callout { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; margin: 24px 0; }
.article-body .callout h4 { margin: 0 0 6px; font-size: 16px; }
.article-body .callout p { margin: 0; font-size: 15px; }

/* ---------- game detail ---------- */
.game-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.game-detail-grid .poster {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
  position: relative;
}
.game-detail-grid .poster .poster-img {
  aspect-ratio: 3 / 4;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3);
}
.game-detail-grid .poster .poster-img img { width: 100%; height: 100%; object-fit: cover; }
.game-detail-grid .poster .code-chip {
  margin-top: 14px;
  display: inline-flex;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  color: var(--ink-2);
}
.game-detail-grid .details h1 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 8px; }
.game-detail-grid .details .byline { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.fact-grid .fact {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}
.fact-grid .fact .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.fact-grid .fact .v { font-weight: 600; font-size: 14px; word-break: break-word; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.related-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 100ms ease, box-shadow 120ms ease;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.related-card .thumb { aspect-ratio: 3 / 4; background: var(--surface-3); overflow: hidden; }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .body { padding: 10px; }
.related-card .body h4 { font-size: 13px; margin: 0; line-height: 1.25; font-family: 'Inter Tight', sans-serif; font-weight: 600; }

/* ---------- games hub (filter + grid) ---------- */
.games-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.games-filter-bar input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
}
.games-filter-bar input[type="search"]:focus { outline: none; border-color: var(--accent); }
.games-filter-bar select {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
}
.games-filter-bar .count { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }

.games-lobby {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.games-lobby .game-tile {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 100ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.games-lobby .game-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.games-lobby .game-tile .thumb { aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-3); }
.games-lobby .game-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.games-lobby .game-tile .body { padding: 8px 10px 10px; min-width: 0; }
.games-lobby .game-tile .body h4 { font-size: 13px; margin: 0 0 4px; font-family: 'Inter Tight', sans-serif; font-weight: 600; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.games-lobby .game-tile .body .provider { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.games-lobby-load-more {
  margin: 22px auto 0;
  display: flex;
  justify-content: center;
}

/* ---------- yono app detail ---------- */
.app-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.app-profile-grid .poster {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
  position: sticky;
  top: 88px;
}
.app-profile-grid .poster img { width: 140px; height: 140px; margin: 0 auto; border-radius: 28px; }
.app-profile-grid .poster h2 { font-size: 22px; margin: 14px 0 4px; }
.app-profile-grid .poster .cat { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- generic content page (legal, support, etc.) ---------- */
.legal-doc { max-width: 78ch; margin: 0 auto; }
.legal-doc h1 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 14px; }
.legal-doc h2 { font-size: 22px; margin-top: 1.5em; margin-bottom: 0.5em; }
.legal-doc h3 { font-size: 18px; margin-top: 1.3em; margin-bottom: 0.4em; }
.legal-doc p, .legal-doc li { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.legal-doc p { margin-bottom: 1em; }
.legal-doc .meta { color: var(--muted); font-size: 13px; font-family: 'JetBrains Mono', monospace; margin-bottom: 24px; }
.legal-doc .updated { color: var(--muted); font-size: 13px; font-family: 'JetBrains Mono', monospace; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- utility / responsive ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
  font-size: 13px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* narrow tablet */
@media (max-width: 1199px) {
  .shelf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .games-lobby { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .col-apps { grid-column: 2 / 4; }
}

/* tablet */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse > .feat-text { order: 1; }
  .feature-split.reverse > .feat-media { order: 2; }
  .promo-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-hero { grid-template-columns: 1fr; }
  .app-profile-grid { grid-template-columns: 1fr; }
  .app-profile-grid .poster { position: static; }
  .game-detail-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-strip .container { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .screenshot-rail { grid-template-columns: repeat(2, 1fr); }
}

/* wide mobile */
@media (max-width: 899px) {
  .main-nav { display: none; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-cta { display: block; }
  .site-footer { padding-bottom: 92px; }
  body.has-mobile-cta { padding-bottom: 0; }
  body.has-mobile-cta .site-footer { padding-bottom: 92px; }
  .shelf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .games-lobby { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* mobile */
@media (max-width: 599px) {
  .shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .games-lobby { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-grid { grid-template-columns: 1fr; }
  .screenshot-rail { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid .brand-col { grid-column: 1 / -1; }
  .footer-grid .col-apps { grid-column: auto; }
  .timeline-rail { padding-left: 22px; }
  .timeline-rail .step::before { left: -30px; }
  .hero-card { padding: 22px; }
  .article-hero { gap: 18px; }
  .article-body { font-size: 15.5px; }
  .article-body p { font-size: 15.5px; }
}

/* very narrow (320) */
@media (max-width: 359px) {
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-lobby { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 32px; }
  .hero .lede { font-size: 16px; }
  .btn--lg { padding: 14px 20px; font-size: 15px; }
}

/* scroll-margin for sticky nav */
section[id] { scroll-margin-top: 84px; }
