:root {
  --ocean-950: #071525;
  --ocean-900: #0b2340;
  --ocean-800: #123056;
  --ocean-700: #1a4e86;
  --ocean-500: #1f6fa8;
  --gold: #f0c14a;
  --gold-deep: #e0a82e;
  --brown: #8c4a22;
  --brown-deep: #3a2414;
  --footer: #3e2918;
  --salt: #f7f3ea;
  --card: #fffcf7;
  --ink: #3a2414;
  --muted: #6d5646;
  --line: rgba(58, 36, 20, 0.12);
  --shadow: 0 10px 30px rgba(7, 21, 37, 0.08);
  --radius: 18px;
  --max: 1120px;
  --header: 72px;
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--gold); color: var(--brown-deep);
  padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--ocean-950);
  border-bottom: 2px solid var(--gold);
  color: #f7f3ea;
}
.header-bar {
  min-height: var(--header);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; position: relative; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 800; letter-spacing: -0.03em; font-size: 1.05rem; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--gold); }
.desk-nav { display: none; gap: 22px; margin-left: auto; }
.desk-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.92; }
.desk-nav a[aria-current="page"] { color: var(--gold); }
.desk-nav a:hover { color: var(--gold); }
.header-cta { margin-left: auto; }
.menu-btn {
  margin-left: auto;
  background: transparent; color: #fff; border: 1px solid rgba(247, 243, 234, 0.35);
  border-radius: 10px; padding: 8px 10px; display: grid; gap: 5px; cursor: pointer;
}
.menu-btn:hover,
.menu-btn:active { border-color: var(--gold); color: var(--gold); background: transparent; }
.menu-btn:focus,
.menu-btn:focus-visible { color: #fff; background: transparent; }
.menu-btn:disabled { color: #d5deea; border-color: rgba(247, 243, 234, 0.35); cursor: not-allowed; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.mobile-menu {
  background: var(--ocean-900);
  border-top: 1px solid rgba(240, 193, 74, 0.25);
  padding: 8px 16px 18px;
}
.mobile-menu a {
  display: block; padding: 12px 4px; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(247, 243, 234, 0.08);
}
.mobile-menu a[aria-current="page"] { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; font-weight: 700; border: 2px solid transparent; cursor: pointer;
}
/* #8c4a22 on #f0c14a is 3.99:1, under AA for this size. #3a2414 is 8.62:1, and 6.80:1 on the hover gold. */
.btn-gold,
.page-hero a.btn-gold,
.hero a.btn-gold {
  background: var(--gold); color: var(--brown-deep);
}
.btn-gold:hover,
.btn-gold:active,
.page-hero a.btn-gold:hover,
.page-hero a.btn-gold:active,
.hero a.btn-gold:hover,
.hero a.btn-gold:active {
  background: var(--gold-deep); color: var(--brown-deep);
}
.btn-gold:focus,
.btn-gold:focus-visible,
.page-hero a.btn-gold:focus,
.page-hero a.btn-gold:focus-visible,
.hero a.btn-gold:focus,
.hero a.btn-gold:focus-visible {
  background: var(--gold); color: var(--brown-deep);
}
.btn-gold:disabled,
a.btn-gold[aria-disabled="true"],
.btn-gold:disabled:hover,
.btn-gold:disabled:focus,
.btn-gold:disabled:active,
a.btn-gold[aria-disabled="true"]:hover,
a.btn-gold[aria-disabled="true"]:focus,
a.btn-gold[aria-disabled="true"]:active {
  background: #e4d3a1; color: var(--brown-deep); cursor: not-allowed;
}
.btn-ghost,
.page-hero a.btn-ghost,
.hero a.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(247, 243, 234, 0.7);
}
.btn-ghost:hover,
.btn-ghost:active,
.page-hero a.btn-ghost:hover,
.page-hero a.btn-ghost:active,
.hero a.btn-ghost:hover,
.hero a.btn-ghost:active {
  background: transparent; border-color: var(--gold); color: var(--gold);
}
.btn-ghost:focus,
.btn-ghost:focus-visible,
.page-hero a.btn-ghost:focus,
.page-hero a.btn-ghost:focus-visible,
.hero a.btn-ghost:focus,
.hero a.btn-ghost:focus-visible {
  background: transparent; color: #fff; border-color: rgba(247, 243, 234, 0.7);
}
.btn-ghost:disabled,
a.btn-ghost[aria-disabled="true"],
.btn-ghost:disabled:hover,
a.btn-ghost[aria-disabled="true"]:hover,
a.btn-ghost[aria-disabled="true"]:focus,
a.btn-ghost[aria-disabled="true"]:active {
  color: #d5deea; border-color: rgba(247, 243, 234, 0.45); background: transparent; cursor: not-allowed;
}
.btn-line { background: transparent; color: var(--brown-deep); border-color: rgba(58, 36, 20, 0.35); }
.btn-line:hover,
.btn-line:active { background: #fff6df; color: var(--brown-deep); border-color: var(--brown-deep); }
.btn-line:focus,
.btn-line:focus-visible { background: transparent; color: var(--brown-deep); border-color: rgba(58, 36, 20, 0.35); }
.btn-line:disabled,
a.btn-line[aria-disabled="true"],
.btn-line:disabled:hover,
a.btn-line[aria-disabled="true"]:hover,
a.btn-line[aria-disabled="true"]:focus,
a.btn-line[aria-disabled="true"]:active {
  color: #6d5646; border-color: rgba(58, 36, 20, 0.25); background: transparent; cursor: not-allowed;
}
.btn-small { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }
.btn-block { width: 100%; }

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(31, 111, 168, 0.45), transparent 60%),
    linear-gradient(180deg, var(--ocean-900), #0a1c33 70%, var(--ocean-950));
  color: #f7f3ea;
  padding: 48px 0 56px;
}
.hero-grid { display: grid; gap: 28px; }
.pill {
  display: inline-flex; align-items: center;
  background: var(--gold); color: var(--brown-deep);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em;
  border-radius: 999px; padding: 5px 10px; margin-bottom: 14px;
}
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--gold); }
.lede { margin-top: 14px; max-width: 46rem; color: rgba(247, 243, 234, 0.86); font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  border: 1px solid rgba(240, 193, 74, 0.7); color: var(--gold);
  border-radius: 999px; padding: 4px 10px; font-size: 0.82rem; font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.points { display: none; grid-template-columns: 1fr 1fr; gap: 12px; }
.point {
  border: 1px solid rgba(240, 193, 74, 0.35);
  background: rgba(8, 24, 44, 0.35);
  border-radius: 16px; padding: 14px 14px 16px;
}
.point h3 { color: var(--gold); font-size: 1rem; margin-bottom: 4px; }
.point p { color: rgba(247, 243, 234, 0.82); font-size: 0.92rem; }

.section { padding: 42px 0 28px; }
.section h2 { margin-bottom: 18px; }
.game-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; min-height: 100%;
  text-decoration: none; color: inherit;
  border: 1px solid rgba(58, 36, 20, 0.04);
}
.card:hover { transform: translateY(-2px); }
.card .art { aspect-ratio: 16 / 10; background: var(--ocean-800); }
.card .art img, .card .art svg { width: 100%; height: 100%; object-fit: cover; }
.card .art.logo-art { display: flex; align-items: center; justify-content: center; background: #071525; }
.card .art.logo-art picture { height: 86%; display: flex; align-items: center; justify-content: center; }
.card .art.logo-art img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.card .body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.02rem; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 0.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag {
  background: #e7eef6; color: #1a4e86; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; padding: 3px 8px;
}
.tag.demo { background: #f8e7c8; color: #6b3e12; }
.card.all {
  background: var(--ocean-900); color: var(--gold);
  align-items: center; justify-content: center; text-align: center;
  min-height: 180px; border: 0;
}
.card.all span { font-weight: 800; font-size: 1.25rem; }

.facts-band { padding: 8px 0 48px; }
.studio-partners { display: grid; gap: 12px; margin: 0 0 12px; }
.studio-partner {
  display: flex; align-items: center; gap: 14px;
  min-height: 96px; border-radius: 16px; padding: 14px 16px; text-decoration: none;
}
.studio-partner img { width: 52px; height: 52px; flex: none; }
.studio-partner .copy { display: grid; gap: 2px; min-width: 0; }
.studio-partner strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.studio-partner .line { font-size: 0.92rem; }
.studio-partner.fnc {
  background: #101728;
  color: #e7fbff;
  border: 1px solid rgba(34, 233, 235, 0.55);
}
.studio-partner.fnc strong {
  background: linear-gradient(90deg, #22e9eb, #f60f86);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.studio-partner.fnc .line { color: rgba(231, 251, 255, 0.86); }
.studio-partner.fnc .url { color: #22e9eb; font-weight: 700; font-size: 0.85rem; }
.studio-partner.lpesa {
  background: #fff; color: #142033;
  border: 1px solid rgba(20, 32, 51, 0.12);
}
.studio-partner.lpesa img {
  width: 72px; height: 72px; max-width: 72px; max-height: 72px;
  object-fit: contain; flex: 0 0 72px; background: transparent;
}
.studio-partner.lpesa .line { color: #3d4a5c; }
.studio-partner.lpesa .url { color: #0b6b4a; font-weight: 700; font-size: 0.85rem; }
.fact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact-pill {
  background: var(--ocean-900); color: #f7f3ea; border-radius: 16px;
  padding: 16px 12px; text-align: center;
}
.fact-pill strong { display: block; font-size: 0.98rem; }
.fact-pill span { display: block; color: rgba(247, 243, 234, 0.72); font-size: 0.82rem; margin-top: 2px; }

.page-hero { background: linear-gradient(180deg, var(--ocean-900), #102848); color: #f7f3ea; padding: 36px 0 32px; }
.kicker {
  color: var(--gold); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.page-hero .lede { margin-top: 10px; }
.page-hero a { color: var(--gold); font-weight: 700; }

.panel {
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  padding: 22px 20px 18px; border: 1px solid rgba(58, 36, 20, 0.04);
}
.panel h2 { font-size: 1.35rem; margin-bottom: 8px; }
.panel .sub { color: var(--muted); margin-bottom: 8px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td {
  text-align: left; vertical-align: top; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.facts th { width: 38%; font-weight: 700; padding-right: 12px; }
.facts td { color: #4e3b2e; }
.facts a { color: var(--ocean-700); font-weight: 700; }

.partner-layout { padding: 28px 0 20px; display: grid; gap: 16px; }
.pick { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.pick select, .field input, .field select, .field textarea {
  width: 100%; background: #fffdf8; border: 1px solid #e6d9c6;
  border-radius: 999px; padding: 12px 14px; outline: none;
}
.field textarea { border-radius: 16px; min-height: 120px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field span { font-weight: 700; font-size: 0.92rem; }
.fine { color: var(--muted); font-size: 0.82rem; margin-top: 10px; }
.hp {
  position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden;
}
.steps { display: grid; gap: 12px; padding-bottom: 36px; }
.step {
  background: var(--ocean-900); color: #f7f3ea; border-radius: 16px; padding: 16px;
}
.step strong { display: block; margin-bottom: 4px; }
.step p { color: rgba(247, 243, 234, 0.78); font-size: 0.92rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button {
  border: 1px solid rgba(58, 36, 20, 0.18); background: transparent; color: var(--brown-deep);
  border-radius: 999px; padding: 7px 12px; cursor: pointer; font-weight: 700;
}
.filters button:hover,
.filters button:active { border-color: var(--ocean-900); color: var(--ocean-900); background: transparent; }
.filters button:focus,
.filters button:focus-visible { color: var(--brown-deep); background: transparent; }
.filters button[aria-pressed="true"],
.filters button[aria-pressed="true"]:hover,
.filters button[aria-pressed="true"]:focus,
.filters button[aria-pressed="true"]:focus-visible,
.filters button[aria-pressed="true"]:active {
  background: var(--ocean-900); color: var(--gold); border-color: var(--ocean-900);
}
.filters button:disabled { color: #6d5646; background: transparent; cursor: not-allowed; }

.prose { display: grid; gap: 14px; padding-bottom: 28px; }
.prose h2 { font-size: 1.35rem; margin-top: 8px; }
.prose p, .prose li { color: #4e3b2e; }
.prose ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 6px; }
.prose a { color: var(--ocean-700); font-weight: 700; }
.prose a.btn-line,
.prose a.btn-line:focus,
.prose a.btn-line:focus-visible { color: var(--brown-deep); }
.prose a.btn-line:hover,
.prose a.btn-line:active { color: var(--brown-deep); background: #fff6df; }
.help-grid { display: grid; gap: 12px; }
.help {
  background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
}
.help .region { color: var(--ocean-700); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-art { width: 100%; border-radius: 22px; margin-bottom: 16px; background: var(--ocean-800); }
picture.detail-art.logo-art {
  display: block; width: min(100%, 420px); margin-bottom: 16px;
  background: transparent; border-radius: 0;
}
picture.detail-art.logo-art img { width: 100%; height: auto; object-fit: contain; }
.crumb { font-size: 0.88rem; margin-bottom: 8px; }
.crumb a { color: var(--gold); text-decoration: none; font-weight: 700; }
.split { display: grid; gap: 16px; }
.note {
  background: #fff6df; border-radius: 14px; padding: 12px 14px; color: #5c3b16; font-size: 0.92rem;
}

.site-footer { background: var(--footer); color: #f7f3ea; padding: 18px 0; margin-top: 12px; }
.footer-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; font-size: 0.86rem; }
.site-footer a { color: #f7f3ea; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.age { font-weight: 700; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* Gold on salt is 1.53:1. Buttons on light pages take a navy ring (16.6:1 on salt). */
.btn-line:focus-visible,
.filters button:focus-visible,
.panel .btn:focus-visible,
.prose .btn:focus-visible { outline-color: var(--ocean-950); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}

@media (min-width: 880px) {
  .desk-nav { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .header-cta { margin-left: 0; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 36px; }
  .chips { display: none; }
  .points { display: grid; }
  .game-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .studio-partners { grid-template-columns: 1fr 1fr; }
  .fact-row { grid-template-columns: repeat(3, 1fr); }
  .partner-layout { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .card .body { padding: 14px 14px 16px; }
}

@media (max-width: 879px) {
  .fact-row .fact-pill:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .header-cta { display: none; }
  .studios {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}
