:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -40px; background: #fff; color: #111; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--header); color: var(--header-ink); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 72px; padding: 10px 0; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 14px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a, .topbar .btn-ghost { color: var(--header-ink); text-decoration: none; }
.topbar .btn-solid { background: #ffe08a; color: #1a1406; }
.nav a { font-size: 14px; font-weight: 700; white-space: nowrap; opacity: .88; }
.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.actions { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border-radius: 999px; font-weight: 750; text-decoration: none; border: 1px solid transparent; line-height: 1; }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-line, .btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.hero { padding: 8px 0 4px; }
.kicker { margin: 0 0 8px; color: var(--accent); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 12px; }
h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; margin: 0 0 10px; }
h3 { margin: 0 0 4px; font-size: 18px; }
.lede { font-size: 18px; max-width: 68ch; }
.ticker { margin: 18px 0 0; font-size: 13px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.meta, .aka { color: var(--muted); }
.aka { display: block; font-size: 13px; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
main { padding: 22px 0 64px; }
section { margin: 0 0 28px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.crumbs a { color: var(--muted); }
.rank-list, .steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-item, .game-card, .promo, .app-card, .guide-card, .balance div, .side {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.rank-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px; }
.pos { font-size: 22px; font-weight: 800; color: var(--accent); }
.game-wall, .promo-grid, .guide-grid, .balance { display: grid; gap: 12px; }
.game-wall, .guide-grid { grid-template-columns: repeat(2, 1fr); }
.promo-grid, .balance { grid-template-columns: repeat(3, 1fr); }
.balance { grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.game-card, .promo, .guide-card { padding: 16px; display: flex; flex-direction: column; min-height: 180px; }
.game-card .btn, .promo a, .app-card .btn { margin-top: auto; align-self: flex-start; }
.guide-card, .guide-grid > a { text-decoration: none; color: inherit; min-height: 0; }
.guide-grid > a:not(.guide-card) { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 750; }
.guide-card strong { display: block; font-size: 18px; margin-bottom: 4px; }
.guide-card span { color: var(--muted); }
.balance div { padding: 14px; min-height: 0; }
.balance b { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.balance span { font-size: 22px; font-weight: 800; }
.app-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px; margin-bottom: 22px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: var(--header); color: var(--header-ink); font-weight: 800; }
.app-name { margin: 0; font-size: 22px; font-weight: 800; }
.with-side { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.side { position: sticky; top: 86px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.side a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 10px; border-radius: 10px; }
.side a[aria-current="page"], .side a:hover { background: var(--soft); }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.steps h3 { font-size: 16px; }
.steps p, .prose p { margin: 0 0 10px; max-width: 72ch; }
.banner { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 8px 0 18px; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 750; }
.cta-band { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--header); color: var(--header-ink); border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.cta-band p { margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
body.fam-amarelo { --bg:#fff6bf; --ink:#1a2412; --muted:#4d5a38; --card:#fffdf6; --line:#ead98a; --accent:#0f7a4a; --accent-ink:#fff; --header:#123524; --header-ink:#fff6bf; --soft:#fff1c2; --link:#0f7a4a; }
body.fam-azul { --bg:#f3f6ff; --ink:#0e1b3d; --muted:#44537a; --card:#fff; --line:#d5def5; --accent:#1b4fd8; --accent-ink:#fff; --header:#1b4fd8; --header-ink:#fff; --soft:#e7edff; --link:#1b4fd8; }
body.fam-vitrine { --bg:#121214; --ink:#f4f4f5; --muted:#b7b7c2; --card:#1e1e22; --line:#34343c; --accent:#f5c451; --accent-ink:#1a1406; --header:#19191b; --header-ink:#f4f4f5; --soft:#242428; --link:#f5c451; color-scheme: dark; }
body.fam-loja { --bg:#eef6f1; --ink:#072415; --muted:#3d5c4a; --card:#fff; --line:#cfe0d4; --accent:#0b7a45; --accent-ink:#fff; --header:#072415; --header-ink:#e7f6ec; --soft:#e0f0e6; --link:#0b7a45; }
body.fam-parede { --bg:#14161a; --ink:#f5f6f8; --muted:#b4bdcb; --card:#22262e; --line:#343842; --accent:#f0b429; --accent-ink:#1a1406; --header:#1c1e21; --header-ink:#f5f6f8; --soft:#262a31; --link:#ffd98a; color-scheme: dark; }
body.fam-guia { --bg:#f7f4fb; --ink:#1a1020; --muted:#5c4d66; --card:#fff; --line:#e4d8ee; --accent:#59025c; --accent-ink:#fff; --header:#063d2a; --header-ink:#f3fff8; --soft:#efe6f6; --link:#59025c; }
body.fam-pix { --bg:#f2f7f7; --ink:#0f2a2e; --muted:#3e5c60; --card:#fff; --line:#d3e4e4; --accent:#0e7c86; --accent-ink:#fff; --header:#0f2a2e; --header-ink:#e7f6f6; --soft:#e3f2f2; --link:#0e7c86; }
body.fam-promo { --bg:#07140f; --ink:#f3f7f2; --muted:#b7c9bc; --card:#123222; --line:#1d4630; --accent:#d6ff4a; --accent-ink:#102006; --header:#072415; --header-ink:#f3f7f2; --soft:#123222; --link:#d6ff4a; color-scheme: dark; }
@media (min-width: 980px) {
  body.fam-parede .game-wall, body.fam-vitrine .game-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; min-height: 0; }
  .nav { order: 3; flex: 1 0 100%; flex-wrap: wrap; }
  .actions { margin-left: auto; }
  .rank-item, .app-card, .with-side, .game-wall, .promo-grid, .guide-grid, .balance { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 48px 1fr; }
  .rank-item .btn, .app-card .btn { grid-column: 1 / -1; }
  .side { position: static; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
