/* Fontes hospedadas no próprio site (sem requisição a terceiros) — licença em /assets/fonts/LICENSE.txt */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-400.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-700.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-wght.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Mesário Ativo — estilos globais
   Visual claro: fundo branco, tipografia firme, bordas finas e sombras suaves.
   Cor de marca: verde-mesa (esmeralda) com detalhe dourado. */

:root {
  --felt: #0d6b57;          /* verde da marca (ações, destaques) */
  --felt-deep: #0a4f41;
  --felt-soft: #dcede6;     /* fundo de destaque suave */
  --bg: #ffffff;
  --surface: #ffffff;
  --subtle: #f0f2f4;        /* faixas e caixas neutras */
  --ivory: #ffffff;         /* peças e cartões dos jogos */
  --ink: #16181d;
  --muted: #535a65;
  --line: #dde1e5;
  --line-strong: #c4cad1;
  --chip: #c9a227;          /* dourado: só detalhes */
  --chip-ink: #2a2000;
  --red: #c8323a;
  --ok: #1b8a52;
  --shadow-sm: 0 1px 2px rgba(22, 24, 29, .08);
  --shadow: 0 1px 2px rgba(22, 24, 29, .07), 0 8px 24px -8px rgba(22, 24, 29, .18);
  --shadow-lg: 0 2px 4px rgba(22, 24, 29, .05), 0 24px 48px -12px rgba(22, 24, 29, .22);
  --shadow-hard: var(--shadow-sm);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--felt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--felt-deep); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--felt); outline-offset: 3px; border-radius: 6px; }
.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; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; flex: none; }

/* ---------- Cabeçalho ---------- */
.site-head { background: rgba(10, 61, 51, .97); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.18rem/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 21px; flex: none; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: rgba(255, 255, 255, .72); text-decoration: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-weight: 700; font-size: .96rem; transition: color .15s, background .15s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { color: #0a3d33; background: #fff; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .site-head .wrap { min-height: 60px; gap: 12px; }
  .nav-toggle { display: grid; place-items: center; position: relative; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
  .nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .nav-toggle-bars { display: grid; gap: 5px; width: 22px; }
  .nav-toggle-bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .site-head.open .nav-toggle-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-head.open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
  .site-head.open .nav-toggle-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle-dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--chip); box-shadow: 0 0 0 2px #0a3d33; }
  .nav-toggle-dot[hidden], .site-head.open .nav-toggle-dot { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 8px var(--gutter) 16px; background: #0a3d33; border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 16px 30px rgba(0, 0, 0, .25); max-height: calc(100dvh - 60px); overflow-y: auto; }
  .site-head.open .nav { display: flex; }
  .nav a { padding: 13px 14px; border-radius: 12px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { color: #0a3d33; background: #fff; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 700 .98rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .08s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-chip, .btn-felt { background: var(--felt); border-color: var(--felt); color: #fff; box-shadow: 0 1px 2px rgba(13, 107, 87, .2), 0 6px 16px -6px rgba(13, 107, 87, .5); }
.btn-chip:hover, .btn-felt:hover { background: var(--felt-deep); border-color: var(--felt-deep); color: #fff; }
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--subtle); }
.btn-sm { min-height: 38px; padding: 6px 15px; font-size: .9rem; }

/* ---------- Hero da home ---------- */
.hero { background: linear-gradient(180deg, #e9f2ee 0%, #f4f7f6 100%); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 85% 20%, rgba(13, 107, 87, .12), transparent 70%),
    radial-gradient(420px 260px at 70% 90%, rgba(201, 162, 39, .07), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 72px; padding-bottom: 80px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 12ch; letter-spacing: -0.035em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 44ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-dominoes { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.mini-domino { display: inline-grid; grid-template-columns: 1fr 1fr; width: 64px; height: 34px; background: #fff; border-radius: 7px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); transform: rotate(var(--r, 0deg)); }
.mini-domino span { display: grid; place-items: center; }
.mini-domino span + span { border-left: 1px solid var(--line-strong); }
.mini-domino i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); display: block; }
.mini-domino .p { display: grid; grid-template: repeat(3, 5px) / repeat(3, 5px); gap: 2px; }

.hero-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 26px; }
.hero-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.hero-card .count { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.today-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: inherit; border: 1px solid var(--line); margin-top: 10px; background: var(--surface); transition: border-color .15s, background .15s; }
.today-item:hover { border-color: var(--felt); background: var(--felt-soft); color: inherit; }
.today-item .icon { width: 40px; height: 40px; padding: 8px; color: var(--felt); background: var(--felt-soft); border-radius: 12px; }
.today-item strong { display: block; font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -0.01em; }
.today-item small { color: var(--muted); font-size: .9rem; line-height: 1.35; display: block; }
.today-item .state { margin-left: auto; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; white-space: nowrap; }
.today-item .state.done { background: var(--ok); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; padding-bottom: 48px; }
}

/* ---------- Seções ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }
.page-head { padding: 48px 0 20px; }
.page-head p { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }

/* ---------- Cartões de jogo ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile {
  display: grid; grid-template-columns: 76px 1fr; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; min-height: 100px; overflow: hidden;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.tile-face { display: grid; place-items: center; color: #fff; background: var(--felt); }
.tile-face .icon { width: 38px; height: 38px; stroke-width: 1.6; }
.tile-body { padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; }
.tile-body strong { font: 700 1.12rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.tile-body small { color: var(--muted); font-size: .93rem; line-height: 1.4; margin-top: 4px; }
.tile.soon { box-shadow: none; border-style: dashed; }
.tile.soon .tile-face { background: var(--subtle); color: var(--muted); }
.tile.soon:hover { transform: none; box-shadow: none; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--subtle); color: var(--muted); margin-left: 6px; vertical-align: 2px; letter-spacing: 0; }

/* ---------- Anúncios ---------- */
.ad-slot { margin: 36px auto; text-align: center; min-height: 120px; }
.ad-slot .ad-label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.ad-slot.placeholder { border: 1px dashed var(--line-strong); border-radius: 12px; display: grid; place-items: center; color: var(--muted); font-size: .9rem; min-height: 120px; background: var(--subtle); }
.ad-sidebar { position: sticky; top: 92px; min-height: 600px; margin: 0; }

/* ---------- Página de jogo ---------- */
.game-page { padding-bottom: 48px; }
.game-hero { padding: 28px 0 16px; }
.game-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 4px; }
.game-hero p { color: var(--muted); margin: 0; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.game-layout .side { display: none; }
@media (min-width: 1500px) {
  /* Anúncio lateral a 160px da área do jogo (Google recomenda ao menos 150px). */
  .game-page.wrap { max-width: 1440px; }
  .game-layout.has-side { grid-template-columns: minmax(0, 1fr) 300px; gap: 160px; }
  .game-layout.has-side .side { display: block; }
}
.game-shell:has(> noscript) { min-height: 480px; }
.game-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; position: relative; }
@media (max-width: 560px) {
  .gbar { gap: 6px; }
  .gstat { padding: 5px 9px; font-size: .88rem; }
  .game-shell { border-radius: 0; border-left: 0; border-right: 0; margin: 0 calc(-1 * var(--gutter)); box-shadow: none; padding: 10px 8px; }
}
.gbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.gbar .spacer { flex: 1; }
.gstat { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: 999px; background: var(--subtle); font-size: .92rem; }
.gstat .icon { width: 1.05em; height: 1.05em; color: var(--muted); }
.select { appearance: none; min-height: 38px; padding: 6px 34px 6px 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23646b76' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 13px center; color: var(--ink); font: 700 .9rem var(--font-body); cursor: pointer; }
.select:hover { border-color: var(--ink); }
.toggle[aria-pressed="true"] { background: var(--felt); color: #fff; border-color: var(--felt); }
.board-area { position: relative; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.game-msg { text-align: center; color: var(--muted); font-size: .95rem; min-height: 1.6em; margin-top: 12px; }
.noscript-box { padding: 40px 16px; text-align: center; }

/* ---------- Modal de resultado ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(22, 24, 29, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; z-index: 60; animation: fade .15s ease; }
.modal { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); width: min(440px, 100%); padding: 30px 24px 24px; text-align: center; max-height: 92vh; overflow: auto; animation: pop .2s ease; }
.modal h2 { font-size: 1.7rem; margin-bottom: 6px; }
.modal .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 20px 0; }
.modal .stats div { background: var(--subtle); border-radius: 14px; padding: 12px 6px; }
.modal .stats b { display: block; font: 700 1.5rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.modal .stats span { font-size: .84rem; color: var(--muted); }
.modal .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.modal .record { display: inline-block; background: #fbf3d6; color: #6b5400; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: .88rem; }
.modal input[type="text"] { width: 100%; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(6px) scale(.98); opacity: 0; } }

/* ---------- Toast de conquista ---------- */
.toast-stack { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 70; width: min(420px, calc(100% - 24px)); }
.toast { display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.toast .icon { width: 28px; height: 28px; color: var(--chip); }
.toast b { display: block; }
.toast small { opacity: .75; }

/* ---------- Conteúdo editorial ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.table-wrap table { margin: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-display); font-weight: 700; }
.prose thead th { color: var(--muted); font-size: .9rem; }
.guide { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; background: var(--surface); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { margin-bottom: 8px; }
.callout { background: var(--felt-soft); border-radius: 14px; padding: 16px 18px; margin: 0 0 1.2em; }

/* ---------- Ranking / conquistas ---------- */
.tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; padding: 4px; background: var(--subtle); border-radius: 999px; }
.tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 16px; font: 700 .93rem var(--font-body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.board-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-variant-numeric: tabular-nums; }
.board-table th, .board-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.board-table tbody tr:last-child td { border-bottom: 0; }
.board-table th { font: 700 .85rem var(--font-body); color: var(--muted); background: var(--subtle); }
.board-table td.num, .board-table th.num { text-align: right; }
.board-table tr.me td { background: var(--felt-soft); font-weight: 700; }
.board-table .pos { width: 56px; font-weight: 700; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .82rem; font-weight: 700; color: #3b2c00; }
.medal.m1 { background: #f0d77a; } .medal.m2 { background: #dfe3e8; } .medal.m3 { background: #ecc29e; }
.empty { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 32px; text-align: center; color: var(--muted); background: var(--subtle); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ach { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.ach .medal-ico { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--subtle); color: #a6acb5; }
.ach .medal-ico .icon { width: 24px; height: 24px; }
.ach.unlocked { box-shadow: var(--shadow); border-color: var(--line-strong); }
.ach.unlocked .medal-ico { background: linear-gradient(145deg, #f3df92, #c9a227); color: #3b2c00; }
.ach b { font-family: var(--font-display); display: block; letter-spacing: -0.01em; }
.ach small { color: var(--muted); line-height: 1.4; display: block; }
.ach .when { font-size: .8rem; color: var(--ok); font-weight: 700; margin-top: 4px; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 10px 0 4px; }
.progress span { display: block; height: 100%; background: var(--felt); border-radius: inherit; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat-row > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat-row b { font: 700 1.7rem/1.1 var(--font-display); display: block; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-row span { color: var(--muted); font-size: .9rem; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { font-weight: 700; display: block; margin-bottom: 6px; font-size: .95rem; }
input[type="text"], input[type="email"], textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  color: var(--ink); font: 400 1rem var(--font-body); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--felt); outline: none; box-shadow: 0 0 0 4px rgba(13, 107, 87, .12); }
textarea { min-height: 160px; resize: vertical; }
.field-error { color: var(--red); font-size: .9rem; margin-top: 4px; }
.alert { padding: 14px 16px; border-radius: 12px; border: 1px solid; margin-bottom: 16px; }
.alert-ok { border-color: #b7dfc9; background: #eef8f2; }
.alert-err { border-color: #f1c2c5; background: #fdf1f2; }
.hp { position: absolute; left: -5000px; }

/* ---------- Rodapé ---------- */
.site-foot { background: #0a3d33; color: rgba(255, 255, 255, .68); margin-top: 72px; padding: 52px 0 28px; font-size: .94rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-foot h2 { color: #fff; font: 700 .95rem var(--font-body); letter-spacing: 0; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .brand { color: #fff; }
.site-foot .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-btn { background: none; border: 0; color: rgba(255, 255, 255, .68); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.foot-btn:hover { color: #fff; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- Consentimento (LGPD) ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: flex; justify-content: center; }
.consent-box { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px 20px; max-width: 760px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.consent-box p { margin: 0; flex: 1 1 320px; font-size: .94rem; color: var(--muted); }
.consent-box .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Diversos ---------- */
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 32px; }
.cat-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .93rem; background: var(--surface); transition: border-color .15s, background .15s; }
.cat-nav a:hover { border-color: var(--ink); color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--subtle); border: 1px solid var(--line); border-radius: 18px; padding: 22px; color: var(--muted); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--felt); font: 700 1rem var(--font-display); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.steps b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Página de ranking ---------- */
.rank-stats > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.rank-stats .rs-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--felt-soft); color: var(--felt); }
.rank-stats .rs-ico .icon { width: 22px; height: 22px; }
.rank-caption { color: var(--muted); font-size: .95rem; margin: -4px 0 16px; }
.rank-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
@media (max-width: 420px) { .rank-boards { grid-template-columns: 1fr; } }
.rank-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.rank-card-wide { max-width: 760px; }
.rank-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rank-card-head h2 { font-size: 1.2rem; margin: 0; }
.rank-card-head small { color: var(--muted); font-size: .88rem; }
.rank-card-head .btn { margin-left: auto; }
.rank-card-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--felt); color: #fff; flex: none; }
.rank-card-ico .icon { width: 24px; height: 24px; }

.podium { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.podium-slot { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.podium-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 700 1.2rem var(--font-display); color: #fff; background: var(--felt); margin-bottom: 6px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--medal, var(--line-strong)); }
.podium-slot.p1 .podium-avatar { width: 58px; height: 58px; font-size: 1.4rem; }
.podium-name { font-weight: 700; font-size: .95rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-pts { font: 700 .95rem var(--font-display); font-variant-numeric: tabular-nums; }
.podium-detail { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.podium-step { width: 100%; margin-top: 8px; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; background: var(--step, var(--subtle)); color: #3b2c00; }
.podium-step b { font: 700 1.1rem var(--font-display); }
.podium-slot.p1 { --medal: #d4af37; --step: linear-gradient(180deg, #f6e3a1, #e5c55a); }
.podium-slot.p2 { --medal: #b9c0c8; --step: linear-gradient(180deg, #eef1f4, #d6dce2); }
.podium-slot.p3 { --medal: #c98a5a; --step: linear-gradient(180deg, #f3d6bf, #e2b08a); }
.podium-slot.p1 .podium-step { height: 76px; }
.podium-slot.p2 .podium-step { height: 56px; }
.podium-slot.p3 .podium-step { height: 42px; }
.podium-slot.me .podium-name { color: var(--felt); }
.podium-slot.me .podium-name::after { content: " (você)"; font-weight: 400; color: var(--muted); }

.rank-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rank-list li { display: grid; grid-template-columns: 36px 1fr auto 64px; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; border-radius: 8px; }
.rank-list li:last-child { border-bottom: 0; }
.rk-pos { color: var(--muted); font-weight: 700; }
.rk-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-detail { color: var(--muted); font-size: .88rem; }
.rk-pts { text-align: right; font-weight: 700; }
.rank-list li.me { background: var(--felt-soft); }
.rank-list li.me .rk-name::after { content: " (você)"; font-weight: 400; color: var(--muted); }
.rank-me { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--felt-soft); font-size: .92rem; }
.rank-empty { text-align: center; padding: 28px 12px; border-radius: 14px; background: var(--subtle); color: var(--muted); }
.rank-empty p { margin-bottom: 12px; }

.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.record-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.record-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
.record-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--felt-soft); color: var(--felt); flex: none; }
.record-ico .icon { width: 22px; height: 22px; }
.record-body { display: grid; gap: 2px; min-width: 0; }
.record-body strong { font-family: var(--font-display); letter-spacing: -0.01em; }
.record-nums { display: flex; gap: 12px; font-size: .9rem; color: var(--muted); }
.record-nums b { color: var(--ink); font-variant-numeric: tabular-nums; }
.record-body small { color: var(--muted); font-size: .85rem; }
.record-card.has-best small { color: var(--felt); font-weight: 700; }
@media (max-width: 560px) {
  .rank-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rank-stats > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; }
  .rank-stats .rs-ico { width: 32px; height: 32px; border-radius: 9px; }
  .rank-stats .rs-ico .icon { width: 18px; height: 18px; }
  .rank-stats b { font-size: 1.35rem; }
  .rank-stats span:last-child { font-size: .78rem; line-height: 1.25; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; flex: none; padding: 8px 13px; }
  .rank-card { padding: 16px 14px; }
  .podium-avatar { width: 42px; height: 42px; font-size: 1.05rem; }
  .podium-slot.p1 .podium-avatar { width: 50px; height: 50px; }
}

/* Ranking por jogo */
.record-card { font: inherit; text-align: left; cursor: pointer; width: 100%; position: relative; }
.record-card[aria-selected="true"] { border-color: var(--felt); box-shadow: 0 0 0 3px rgba(13, 107, 87, .15); }
.record-card[aria-selected="true"] .record-ico { background: var(--felt); color: #fff; }
.record-chevron { margin-left: auto; align-self: center; color: var(--muted); transition: transform .15s; }
.record-chevron .icon { width: 18px; height: 18px; }
.record-card[aria-selected="true"] .record-chevron { transform: rotate(90deg); color: var(--felt); }
.game-board { margin-top: 18px; max-width: 820px; scroll-margin-top: 90px; animation: pop .2s ease; }
.gb-close { border: 0; background: var(--subtle); width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); flex: none; }
.gb-close:hover { color: var(--ink); background: var(--line); }
.game-board .rank-card-head .btn { margin-left: auto; }
.gb-modes { margin-bottom: 18px; }
.gb-modes:empty { display: none; }
.records .game-board { margin: 4px 0; max-width: none; }
@media (max-width: 560px) { .game-board .rank-card-head small { display: none; } .game-board .rank-card-head .btn { padding: 6px 12px; } }

/* ---------- Meu perfil ---------- */
.nav a .icon { width: 1.05em; height: 1.05em; margin-right: 4px; vertical-align: -0.15em; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.profile-card { display: flex; flex-direction: column; gap: 12px; }
.profile-card .rank-card-head { margin-bottom: 4px; }
.pf-nick { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-nick input { flex: 1 1 180px; }
.pf-help { font-size: .86rem; margin: 0; }
.pf-steps { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .95rem; }
.pf-steps li { margin-bottom: 4px; }
.pf-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px; border-radius: 14px; background: var(--felt-soft); }
.pf-code code { white-space: nowrap; font: 700 1.2rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--felt-deep); flex: 1; }
.profile-card > .btn { align-self: flex-start; }
#pf-code-input { text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Guias "Como jogar" ---------- */
.guide-head { padding: 44px 0 8px; max-width: 820px; }
.guide-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.guide-lead { font-size: 1.18rem; color: var(--muted); line-height: 1.6; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: start; margin-top: 20px; }
@media (max-width: 980px) { .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .guide-side { display: none; } }
.guide-main { min-width: 0; max-width: 760px; }
.guide-cta { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #eef6f3, #f6f9f8); text-decoration: none; color: var(--ink); margin-bottom: 28px; flex-wrap: wrap; }
.guide-cta:hover { border-color: var(--felt); color: var(--ink); }
.guide-cta > span:nth-child(2) { flex: 1 1 220px; }
.guide-cta strong { display: block; font-family: var(--font-display); font-size: 1.08rem; }
.guide-cta small { color: var(--muted); }
.guide-cta-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--felt); color: #fff; flex: none; }
.guide-cta-ico .icon { width: 26px; height: 26px; }
.guide-article h2 { scroll-margin-top: 90px; padding-top: 8px; }
.guide-article h3 { scroll-margin-top: 90px; }
.guide-article p, .guide-article li { font-size: 1.06rem; line-height: 1.75; }
.guide-article ol.steps-list { counter-reset: st; list-style: none; padding: 0; }
.guide-article ol.steps-list > li { counter-increment: st; position: relative; padding-left: 46px; margin-bottom: 14px; }
.guide-article ol.steps-list > li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--felt-soft); color: var(--felt); font: 700 .95rem/30px var(--font-display); text-align: center; }
.guide-article .tip { border-left: 4px solid var(--felt); background: var(--felt-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 0 0 1.2em; }
.guide-article .tip p:last-child { margin-bottom: 0; }
.guide-article .ad-slot { margin: 32px 0; }
.guide-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .94rem; }
.guide-toc a { color: var(--muted); text-decoration: none; }
.guide-toc a:hover { color: var(--felt); text-decoration: underline; }
.guide-toc-title { font-weight: 700; margin-bottom: 10px; }
.guide-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.guide-side .guide-toc { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: var(--surface); }
.guide-side-btn { width: 100%; }
.guide-toc-mobile { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 28px; background: var(--subtle); }
.guide-toc-mobile summary { font-weight: 700; cursor: pointer; }
.guide-toc-mobile ol { margin-top: 10px; }
@media (min-width: 981px) { .guide-toc-mobile { display: none; } }
.guide-end { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 36px; padding: 24px; border-radius: 20px; background: #0a3d33; color: #fff; }
.guide-end h2 { color: #fff; margin-bottom: 4px; font-size: 1.4rem; }
.guide-end p { margin: 0; color: rgba(255, 255, 255, .75); max-width: 46ch; }
.guide-end .btn-chip { background: #fff; color: #0a3d33; border-color: #fff; }
.guide-end .btn-chip:hover { background: var(--felt-soft); color: #0a3d33; }

/* Resumo das regras na página do jogo */
.rules-box { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.rules-box h2 { margin-top: 0; }
.rules-box ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.rules-box li { position: relative; padding-left: 30px; }
.rules-box li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--felt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d6b57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") no-repeat center / 12px; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
@media (max-width: 420px) { .guide-list { grid-template-columns: 1fr; } }
.guide-item { display: grid; grid-template-columns: 76px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.guide-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.guide-item .tile-face { color: #fff; background: var(--felt); }
.guide-item .tile-face .icon { width: 36px; height: 36px; }
.guide-item-body { padding: 16px 18px; display: grid; gap: 4px; }
.guide-item-body strong { font: 700 1.08rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.guide-item-body small { color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* ---------- Central de desafios ("Hoje") ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: .7rem; font-weight: 800; vertical-align: 2px; }
.nav-badge[hidden] { display: none; }
.today-progress { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0 0 18px; box-shadow: var(--shadow-sm); }
.today-progress-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.today-streak { display: inline-flex; align-items: center; gap: 6px; color: #a5450f; font-weight: 700; }
.today-bar { height: 10px; border-radius: 999px; background: var(--subtle, #eef0f2); overflow: hidden; margin: 12px 0 8px; }
.today-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--felt, #0d6b57), #1d8a6c); border-radius: inherit; transition: width .6s ease; }
.today-next { margin: 0; color: var(--muted); }
.today-next a { font-weight: 700; }
.today-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.today-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .12s ease, border-color .12s ease; }
.today-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.today-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.today-body small { color: var(--muted); }
.today-state { font-size: .82rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--felt, #0d6b57); color: #fff; white-space: nowrap; }
.today-state.done { background: #e2f3ec; color: var(--felt, #0d6b57); }
.today-card.is-done { background: #f7fbf9; }
.daily-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: #fff7dc; border: 1px solid #f1dd8e; font-size: .92rem; }
.daily-banner strong { color: #7a5a00; }
.daily-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 10px; border-radius: 12px; background: #e2f3ec; color: var(--felt, #0d6b57); font-weight: 700; }
.friends-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 12px; }
button.friends-cta { width: 100%; font: inherit; text-align: left; cursor: pointer; border-style: solid; }
.friends-cta { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--felt, #0d6b57); background: #f2faf7; text-decoration: none; color: var(--ink); }
.friends-cta:hover { background: #e7f5ef; }
.friends-cta .icon { width: 28px; height: 28px; color: var(--felt, #0d6b57); }
.friends-cta span { display: flex; flex-direction: column; }
.friends-cta small { color: var(--muted); }

/* PWA: instalar app e lembrete diário */
.pwa-box { display: grid; gap: .5rem; margin: 1rem 0; }
.pwa-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--line, #dfe6e3); border-radius: 14px; background: var(--card, #fff); }
.pwa-row > span:first-child { display: grid; gap: .15rem; min-width: 0; flex: 1 1 14rem; }
.pwa-row small { color: var(--muted, #5b6b66); }
.pwa-actions { display: flex; gap: .5rem; align-items: center; }
.pwa-actions .select { width: auto; min-height: 36px; }
.pwa-nudge { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: .75rem; width: min(30rem, calc(100% - 2rem)); padding: .75rem 1rem; border-radius: 16px; background: var(--card, #fff); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.pwa-nudge img { border-radius: 10px; flex: none; }
.pwa-nudge > span { display: grid; flex: 1; min-width: 0; }
.pwa-nudge small { color: var(--muted, #5b6b66); }
.pwa-x { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted, #5b6b66); padding: .25rem; }

/* Temporadas */
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.season-card { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.season-card h3 { margin: 0 0 .6rem; font-size: 1rem; }
.season-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.season-card li { display: flex; align-items: center; gap: .5rem; }
.season-card .sn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.season-card .sp { color: var(--muted); font-size: .88rem; }
.pf-medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .6rem; }
.pf-medal { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pf-medal > span:last-child { display: grid; }
.pf-medal small { color: var(--muted); }

/* Variações e coleções */
.variant-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.25rem 0; }
.variant-links a { padding: .35rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.variant-links a:hover { border-color: var(--ink); }
.variant-links a[aria-current="page"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pf-google-btn { min-height: 44px; margin: 4px 0 10px; }

/* Salas abertas e atalho "Jogar com amigos" */
.friends-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.friends-home .fh-cta { padding: 22px; border-radius: var(--radius); background: #0a3d33; color: #fff; }
.friends-home .fh-cta h2 { color: #fff; margin-bottom: .35em; }
.friends-home .fh-cta p { color: rgba(255, 255, 255, .8); margin: 0 0 14px; }
.friends-home .fh-games { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.friends-home .fh-label { margin: 0 0 8px !important; font-weight: 700; color: #fff !important; font-size: .92rem; }
.friends-home .fh-games button, .friends-home .fh-games a { border: 0; cursor: pointer; font-family: inherit; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
.friends-home .fh-games button:hover, .friends-home .fh-games a:hover { background: rgba(255, 255, 255, .2); }
.open-rooms h3 { margin: 0 0 10px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.open-rooms h3 .live { width: 9px; height: 9px; border-radius: 50%; background: #1fa36b; box-shadow: 0 0 0 4px rgba(31, 163, 107, .18); }
.or-list { display: grid; gap: 8px; }
.or-room { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.or-room:hover { border-color: var(--ink); }
.or-ico { width: 42px; height: 42px; flex: none; border-radius: 10px; }
.or-body { display: grid; flex: 1; min-width: 0; }
.or-body small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-seats { font-weight: 800; color: var(--muted); font-size: .9rem; }
.or-empty { margin: 0; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .friends-home { grid-template-columns: 1fr; } .or-room .btn { display: none; } .or-body small { white-space: normal; } }
.or-ico .icon { width: 24px; height: 24px; }

/* Grupos de amigos */
.gp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gp-create form { display: grid; gap: 8px; }
.gp-create label { font-weight: 700; font-size: .92rem; }
.gp-create input, .gp-join-form input { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; background: var(--surface); color: var(--ink); }
.gp-create .btn { justify-self: start; margin-top: 6px; }
.gp-mine h2 { font-size: 1.3rem; }
.gp-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.gp-item:hover { border-color: var(--ink); }
.gp-item small { color: var(--muted); white-space: nowrap; }
.gp-join { margin-bottom: 16px; }
.gp-join h2 { font-size: 1.2rem; margin-bottom: .3em; }
.gp-join-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gp-join-form input { flex: 1 1 200px; }
.gp-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.gp-invite .rm-link { display: flex; gap: 6px; flex: 1 1 320px; }
.gp-invite .rm-link input { flex: 1; min-width: 0; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font: inherit; font-size: .9rem; background: var(--surface); color: var(--ink); }
.gp-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gp-board li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gp-board li.me { border-color: #0f6b57; background: #f2faf7; }
.gp-board li.zero { opacity: .7; }
.gp-pos { font-weight: 800; text-align: center; color: var(--muted); }
.gp-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-games { color: var(--muted); font-size: .88rem; }
.gp-pts { font-weight: 800; }
.gp-leave-wrap { margin-top: 20px; }
@media (max-width: 760px) {
  .gp-grid { grid-template-columns: 1fr; }
  .gp-board li { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .gp-games { display: none; }
}
@media (max-width: 520px) {
  .hero-card { padding: 18px 14px; border-radius: 18px; }
  .today-item { gap: 10px; padding: 12px; }
  .today-item .icon { width: 34px; height: 34px; padding: 7px; flex-shrink: 0; }
  .today-item strong { font-size: 1rem; }
  .today-item small { font-size: .85rem; }
  .today-item .state { padding: 5px 10px; }
}
