/* numbors.ai/games: Numbors for Game Studios.
   The play.tyga.games arcade look (tokens and shape rules confirmed by wesell-cloud 2026-11-14):
   dark only, pills, 12px flat cards, lime for small uppercase tags, red as the one call to action,
   sticky blurred bar, one rounded system stack. The look only: no Tyga names, marks or game art. */
:root {
  --fp-bg: #070708;
  --fp-surface: #1d1d21;
  --fp-surface-2: #26262b;
  --fp-text: #f4f4f6;
  --fp-muted: #9a9aa4;
  --fp-accent: #d2042d;
  --fp-lime: #beee11;
  --fp-font: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.arcade {
  margin: 0;
  background: var(--fp-bg);
  color: var(--fp-text);
  font-family: var(--fp-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fp-lime); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fp-lime); color: #070708; padding: 8px 14px; border-radius: 999px; font-weight: 800; z-index: 50; }
.skip:focus { left: 12px; }

/* Tags: small, uppercase, dark on lime */
.tag {
  display: inline-block;
  background: var(--fp-lime);
  color: #070708;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

/* Pills: every button */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 0;
  transition: background .15s ease, transform .15s ease;
}
.pill-lg { padding: 13px 26px; font-size: 16px; }
.pill-cta { background: var(--fp-accent); color: #fff; }            /* white on #d2042d: 5.5:1 */
.pill-cta:hover { background: #e42230; }
.pill-quiet { background: var(--fp-surface-2); color: var(--fp-text); }
.pill-quiet:hover { background: #2f2f35; }
.pill:active { transform: scale(.98); }

/* Top bar: sticky, translucent, blurred */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 7, 8, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.bar-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { font-weight: 800; font-size: 18px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.bar-links { display: flex; gap: 22px; margin-left: 12px; }
.bar-links a { color: var(--fp-muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.bar-links a:hover { color: var(--fp-text); }
.bar-actions { margin-left: auto; display: flex; gap: 10px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero h1 {
  font-size: clamp(2.25rem, 5vw + .5rem, 4.2rem);
  line-height: 1.04; font-weight: 800; letter-spacing: -.02em;
  margin: 18px 0 18px;
}
.lead { font-size: clamp(1.05rem, 1vw + .8rem, 1.3rem); color: #c9cdd3; max-width: 62ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--fp-muted); font-size: 13px; max-width: 70ch; margin: 16px 0 0; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.board-card { background: var(--fp-surface); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.board-card .k { color: var(--fp-muted); font-size: 13px; font-weight: 600; }
.board-card .v { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rows { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .06); color: #c9cdd3; }
.rows li span:last-child { font-variant-numeric: tabular-nums; color: var(--fp-text); }
.board-card .tag { align-self: flex-start; margin-top: 10px; }

/* Sections */
.sect { padding: 64px 0; }
.sect h2 { font-size: clamp(1.7rem, 3vw + .5rem, 2.4rem); font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; }
.sub { color: #c9cdd3; max-width: 68ch; margin: 0 0 30px; font-size: 1.05rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--fp-surface); border-radius: 12px; padding: 24px; }
.card i { font-size: 22px; color: var(--fp-lime); }
.card h3 { font-size: 1.15rem; font-weight: 800; margin: 12px 0 8px; }
.card p { color: #c9cdd3; margin: 0; font-size: .97rem; }
.card .tag + h3 { margin-top: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--fp-surface); border-radius: 12px; padding: 22px; }
.steps .n { display: inline-flex; width: 32px; height: 32px; border-radius: 999px; background: var(--fp-surface-2); align-items: center; justify-content: center; font-weight: 800; }
.steps h3 { font-size: 1.05rem; font-weight: 800; margin: 12px 0 6px; }
.steps p { color: #c9cdd3; margin: 0; font-size: .95rem; }

.card-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; border-radius: 16px; padding: 32px; }
.card-wide h2 { font-size: 1.6rem; margin: 14px 0 10px; }
pre { margin: 0; background: #0b0b0e; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 18px; overflow-x: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: #d6e9a8; line-height: 1.8; }

.close { text-align: center; }
.close .sub { margin-inline: auto; }

.foot { border-top: 1px solid rgba(255, 255, 255, .06); padding: 32px 0 44px; color: var(--fp-muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot-in > span { font-weight: 800; color: var(--fp-text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--fp-muted); text-decoration: none; }
.foot a:hover { color: var(--fp-text); }
.foot .fine { flex-basis: 100%; margin: 6px 0 0; }

@media (max-width: 991.98px) {
  .board, .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-template-columns: 1fr; }
  .bar-links { display: none; }
}
@media (max-width: 640px) {
  .board, .grid, .grid-2, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .bar-actions .pill-quiet { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill { transition: none; }
}

/* Topic pages */
.bar-links a.on { color: var(--fp-text); }
.card-link { display: block; text-decoration: none; transition: background .15s ease; }
.card-link:hover { background: var(--fp-surface-2); }
.steps li h3 { margin-bottom: 0; }
