/* ==========================================================================
   JOGOSRÁPIDOS — base.css (folha geral)
   Portal de games rápidos, tema escuro estilo Steam/Playhop: preto, cinza,
   amarelo de brand + capa colorida por game. Aqui ficam tokens + componentes;
   cada game tem seu CSS próprio. As cores de cada capa vêm inline (--g1/--g2).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Base escura */
  --pitch:    #0e0f13; /* fundo da página */
  --charcoal:  #16181f; /* cards e superfícies */
  --graphite: #1e2129; /* superfície elevada / inputs / hover */
  --steel:     #2a2e3a; /* bordas e divisórias */
  --smoke:  #9aa0ac; /* texto secundário */
  --snow:    #eef1f6; /* texto principal */

  /* Acento — amarelo arcade (assinatura da brand) */
  --yellow:        #ffd21e;
  --yellow-dark: #e0b400; /* hover / pressionado */
  --yellow-soft:  rgba(255, 210, 30, 0.14); /* realces e fundos */

  /* Feedback / status */
  --red:    #ef4444;
  --green:  #22c55e;

  /* Escala e efeitos */
  --radius-sm: 0.4rem;
  --radius:    0.75rem;
  --radius-lg: 1.25rem;
  --shadow:    0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 1rem 2.5rem rgba(0, 0, 0, 0.55);
  --shadow-card: 0 0.9rem 2rem rgba(0, 0, 0, 0.55);
  --glow:    0 0 0 1px var(--yellow), 0 0.6rem 1.75rem rgba(255, 210, 30, 0.16);
  --transition: 0.18s ease;
  --container: 78rem;
  --reading:   46rem; /* coluna de conteúdo focado: ferramenta de game, texto de página */

  /* Tipografia — mais técnica que o Unimigos */
  --font-title: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-text:  'Inter', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset e base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* [hidden] deve sempre ocultar, mesmo quando display:flex/grid é definido no seletor */
[hidden] { display: none !important; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--snow);
  background: var(--pitch);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--font-title); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.375rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: var(--radius-sm); }

.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;
}

/* Ícone SVG inline — tamanho relativo ao texto, alinhado verticalmente.
   Usa currentColor, então herda a cor do texto (color: inherit por padrão). */
.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; fill: currentColor; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }

.section { padding-block: clamp(2rem, 4.5vw, 3.25rem); }
/* Non-stage games: the breadcrumb bar sits flush against the header, so remove top padding */
.section:has(.stage__bar) { padding-block-start: 0; }
.section__header { margin-bottom: 1.4rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section__title { color: var(--snow); display: inline-flex; align-items: center; gap: 0.6rem; }
.section__title i { color: var(--yellow); font-size: 0.85em; }
.section__sub { color: var(--smoke); font-size: 0.95rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-title);
  font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--yellow); background: var(--yellow-soft);
  padding: 0.35rem 0.85rem; border-radius: 6.25rem;
}

/* --------------------------------------------------------------------------
   4. Cabeçalho + navegação + search (logo | search | categorias)
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 1100;
  background: rgba(14, 15, 19, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel);
}
.header__inner { display: flex; align-items: center; gap: 1rem; height: 4.25rem; }

.brand { display: inline-flex; align-items: center; font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; color: var(--snow); flex: none; }
.brand__icon { width: 2rem; height: 2rem; flex: none; margin-right: 0.55rem; }
.brand__name { display: inline; }
.brand em { color: var(--yellow); font-style: normal; }

/* Busca — protagonista do topo, como nas referências */
.search { position: relative; flex: 1 1 auto; max-width: 32rem; margin-inline: auto; }
.search__icon { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--smoke); width: 1.05rem; height: 1.05rem; pointer-events: none; }
.search__field {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--snow);
  background: var(--graphite); border: 1px solid var(--steel); border-radius: 6.25rem;
  padding: 0.6rem 2.5rem 0.6rem 2.6rem; transition: border-color var(--transition), background var(--transition);
}
.search__field::placeholder { color: #626976; }
.search__field:focus { outline: none; border-color: var(--yellow); background: var(--charcoal); }
.search__clear { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); color: var(--smoke); width: 1.6rem; height: 1.6rem; display: none; place-items: center; border-radius: 50%; font-size: 1rem; }
.search__clear:hover { color: var(--snow); background: var(--steel); }
.search[data-preenchida="true"] .search__clear { display: grid; }

.nav { display: flex; align-items: center; gap: 1.4rem; flex: none; }
.nav__link { font-weight: 600; font-size: 0.9375rem; color: var(--smoke); transition: color var(--transition); }
.nav__link:hover { color: var(--snow); }

.nav-toggle { display: none; font-size: 1.6rem; color: var(--snow); padding: 0.25rem; flex: none; }

@media (max-width: 56rem) {
  .header__inner { flex-wrap: wrap; height: auto; padding-block: 0.7rem; row-gap: 0.6rem; }
  .brand { order: 1; margin-right: auto; }
  .nav-toggle { display: block; order: 2; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .nav {
    order: 4; flex-basis: 100%; flex-direction: column; gap: 0; align-items: stretch;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav[data-aberto="true"] { max-height: 20rem; }
  .nav__link { width: 100%; padding: 0.75rem 0.25rem; border-top: 1px solid var(--steel); }
}

/* --------------------------------------------------------------------------
   5. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-title); font-weight: 600; font-size: 1.0625rem;
  min-height: 3rem; padding: 0.7rem 1.6rem; border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  user-select: none;
}
.btn:active { transform: translateY(2px); }
/* CTA arcade: amarelo com texto escuro */
.btn--primary { background: var(--yellow); color: var(--pitch); box-shadow: 0 0.35rem 0 var(--yellow-dark); }
.btn--primary:hover { background: #ffdb45; }
.btn--primary:active { box-shadow: 0 0.12rem 0 var(--yellow-dark); }
.btn--ghost { background: var(--graphite); color: var(--snow); border: 1px solid var(--steel); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--large { font-size: 1.25rem; min-height: 3.5rem; padding: 0.9rem 2.25rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* --------------------------------------------------------------------------
   6. Hero (compacto — o portal abre quase direto nos games)
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 5vw, 3.25rem); border-bottom: 1px solid var(--steel); }
.hero::after { /* leve brilho amarelo ao fundo */
  content: ''; position: absolute; top: -40%; right: -8%; width: 34rem; height: 34rem;
  background: radial-gradient(circle, rgba(255, 210, 30, 0.08) 0%, transparent 60%); pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 42rem; }
.hero h1 { margin: 0.6rem 0; color: var(--snow); }
.hero h1 mark { background: none; color: var(--yellow); }
.hero__sub { font-size: 1.0625rem; color: var(--smoke); max-width: 34rem; }

/* Ícones flutuando ao fundo (charme arcade, discreto) */
.hero__chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chip { position: absolute; font-size: 2.25rem; opacity: 0.42; filter: drop-shadow(0 0.4rem 0.6rem rgba(0, 0, 0, 0.5)); animation: flutuar 6s ease-in-out infinite; }
.chip:nth-child(1) { top: 16%; right: 9%;  animation-delay: 0s; }
.chip:nth-child(2) { top: 54%; right: 22%; animation-delay: 1.2s; font-size: 3rem; }
.chip:nth-child(3) { top: 28%; right: 38%; animation-delay: 2.1s; }
.chip:nth-child(4) { bottom: 14%; right: 6%; animation-delay: 0.6s; font-size: 2.5rem; }
@keyframes flutuar { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-12px) rotate(6deg); } }
@media (max-width: 56rem) { .hero__chips { opacity: 0.24; } }

/* --------------------------------------------------------------------------
   7. Cover-cards (grid de games, estilo portal)
   Cada card é a "capa" do game: gradiente por game (--g1/--g2) + ícone herói
   + título sobreposto na base. Badges nos cantos indicam categoria e status.
   -------------------------------------------------------------------------- */
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
}
/* Fileira de destaque (Jogar agora): cards maiores e landscape */
.grid--featured { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.1rem; }

/* Mobile: 2 colunas fixas para reduzir scroll */
@media (max-width: 34rem) {
  .grid,
  .grid--featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .grid--featured .game { aspect-ratio: 4 / 3; }
}

.game {
  position: relative; display: block; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--charcoal); border: 1px solid var(--steel);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.grid--featured .game { aspect-ratio: 16 / 9; }

/* Capa: gradiente + textura + brilho */
.game__cover { position: absolute; inset: 0; background: linear-gradient(140deg, var(--g1, #3a3f4c), var(--g2, #14161c)); }
.game__cover::before { /* textura de pontos, dá granulação arcade */
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1.5px);
  background-size: 15px 15px; opacity: 0.4;
}
.game__cover::after { /* overlay escuro na base p/ legibilidade do título */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 4%, rgba(0, 0, 0, 0.28) 42%, transparent 68%);
}

/* Ícone herói (emoji) + brand d'água atrás dele */
.game__icon {
  position: absolute; left: 0; right: 0; top: 38%; transform: translateY(-50%);
  margin: 0 auto; width: 3.6rem; height: 3.6rem;
  display: grid; place-items: center;
  font-size: clamp(2.2rem, 7vw, 2.8rem); line-height: 1;
  filter: drop-shadow(0 0.35rem 0.7rem rgba(0, 0, 0, 0.35));
  transition: transform var(--transition); z-index: 1;
}
.game__icon::after { /* brand d'água gigante translúcida */
  content: ''; position: absolute; left: 50%; top: 50%; width: 11rem; height: 11rem;
  transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  z-index: -1; border-radius: 50%;
}
.grid--featured .game__icon { width: 4.4rem; height: 4.4rem; font-size: clamp(2.8rem, 8vw, 3.4rem); }

/* Título + categoria, sobre o overlay */
.game__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0.85rem 0.95rem; }
.game__title { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.0625rem; color: #fff; line-height: 1.15; }
.game__cat { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); margin-top: 0.15rem; }
.grid--featured .game__title { font-size: 1.375rem; }

/* Selo de status (canto superior direito) */
.game__badge {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  font-family: var(--font-title); font-weight: 600; font-size: 0.72rem;
  padding: 0.22rem 0.6rem; border-radius: 6.25rem; text-transform: uppercase; letter-spacing: 0.03em;
  display: inline-flex; align-items: center; gap: 0.28rem; backdrop-filter: blur(4px);
}
.game__badge--play { background: var(--yellow); color: var(--pitch); }
.game__badge--soon { background: rgba(10, 11, 14, 0.7); color: var(--snow); border: 1px solid rgba(255, 255, 255, 0.18); }

/* Hover (só nos jogáveis) */
a.game:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: rgba(255, 255, 255, 0.25); }
a.game:hover .game__icon { transform: translateY(-50%) scale(1.08); }

/* Card "em breve": desbotado e sem interação */
.game--soon { filter: saturate(0.55) brightness(0.72); cursor: default; }
.game--soon .game__icon { color: rgba(255, 255, 255, 0.8); }

/* Estado vazio da search */
.no-results { display: none; text-align: center; color: var(--smoke); padding: 3rem 1rem; }
.no-results .icon { width: 2.5rem; height: 2.5rem; color: var(--steel); display: block; margin: 0 auto 0.75rem; }
body[data-search-vazia="true"] .no-results { display: block; }
body[data-search-vazia="true"] .section__header { display: none; }

/* --------------------------------------------------------------------------
   8. Formulários
   -------------------------------------------------------------------------- */
.field-group { margin-bottom: 1.25rem; }
.field-label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--snow); }
.field {
  width: 100%; font: inherit; color: var(--snow); background: var(--graphite);
  border: 1px solid var(--steel); border-radius: var(--radius); padding: 0.85rem 1rem;
  transition: border-color var(--transition);
}
.field::placeholder { color: #626976; }
.field:focus { outline: none; border-color: var(--yellow); }
textarea.field { min-height: 11rem; resize: vertical; line-height: 1.7; }

.option { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; color: var(--smoke); cursor: pointer; }
.option input { width: 1.15rem; height: 1.15rem; accent-color: var(--yellow); }

/* --------------------------------------------------------------------------
   9. Palco do game (layout comum das páginas de game)
   -------------------------------------------------------------------------- */
.platform { max-width: var(--reading); margin: 0 auto; }

.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--smoke); margin-bottom: 1.5rem; transition: color var(--transition); }
.back-link:hover { color: var(--yellow); }

/* Cabeçalho de game estilo portal: ícone + título + tags */
.game-header { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.75rem; }
.game-header__icon {
  flex: none; width: 4rem; height: 4rem; display: grid; place-items: center;
  border-radius: var(--radius); font-size: 2rem; color: #fff;
  background: linear-gradient(140deg, var(--g1, var(--yellow)), var(--g2, var(--yellow-dark)));
  box-shadow: var(--shadow);
}
.game-header__text h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); color: var(--snow); }
.game-header__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tag-pill { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--smoke); background: var(--graphite); border: 1px solid var(--steel); padding: 0.2rem 0.65rem; border-radius: 6.25rem; }
.tag-pill i { color: var(--yellow); }

.box { background: var(--charcoal); border: 1px solid var(--steel); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.5rem); }

.empty-state { text-align: center; color: var(--smoke); padding: 1.5rem 0; }

/* Histórico (compartilhado por Dado, Bingo, Sorteios) */
.history { margin-top: 2rem; }
.history__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.history__title { font-size: 1.1875rem; color: var(--snow); }
.history__list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.history__item { display: flex; align-items: center; gap: 0.75rem; background: var(--graphite); border: 1px solid var(--steel); border-radius: var(--radius); padding: 0.7rem 1rem; font-weight: 600; }
.history__item .ordem { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--yellow); color: var(--pitch); font-size: 0.8125rem; flex: none; }
.link-danger { font-weight: 600; color: var(--yellow); font-size: 0.9375rem; }

/* Jogos related (rodapé das páginas de game) — largura total = grid da home */
.related { margin: 3rem auto 0; }
.related__title { font-size: 1.25rem; color: var(--snow); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.related__title i { color: var(--yellow); font-size: 0.85em; }

/* --------------------------------------------------------------------------
   9b. Páginas de conteúdo (sobre, termos, privacidade)
   Coluna de leitura centralizada dentro do mesmo container de tudo.
   -------------------------------------------------------------------------- */
.page { max-width: var(--reading); margin: 0 auto; }
.page > .eyebrow { margin-bottom: 0.85rem; }
.page h1 { color: var(--snow); margin-bottom: 0.4rem; }
.page h2 { color: var(--snow); margin: 2.5rem 0 0.85rem; padding-top: 0.35rem; }
.page h3 { color: var(--snow); margin: 1.6rem 0 0.5rem; font-size: 1.15rem; }
.page p, .page li { color: #c7ccd6; line-height: 1.7; }
.page p { margin-bottom: 1rem; }
.page ul, .page ol { margin: 0 0 1.1rem 1.35rem; }
.page li { margin-bottom: 0.45rem; }
.page li::marker { color: var(--yellow); }
.page strong { color: var(--snow); }
.page a { color: var(--yellow); text-decoration: underline; text-underline-offset: 0.125rem; }
.page a:hover { color: var(--yellow-dark); }
.page__meta { color: var(--smoke); font-size: 0.9rem; margin-bottom: 2.25rem; }
.page hr { border: none; border-top: 1px solid var(--steel); margin: 2.5rem 0; }

/* Aviso/observação em destaque (ex.: rascunho a revisar) */
.notice {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--yellow-soft); border: 1px solid rgba(255, 210, 30, 0.25);
  border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.5rem 0; font-size: 0.92rem;
}
.notice i { color: var(--yellow); font-size: 1.2rem; flex: none; margin-top: 0.1rem; }
.notice p { color: var(--snow); margin: 0; }

/* --------------------------------------------------------------------------
   9c. Barra de teclas de shortcut (acessibilidade)
   -------------------------------------------------------------------------- */
.shortcuts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem;
  max-width: var(--reading); margin: 0 auto 1.25rem;
  padding: 0.6rem 0.9rem; background: var(--charcoal);
  border: 1px solid var(--steel); border-radius: var(--radius);
}
.shortcuts__label { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--smoke); }
.shortcuts__label i { color: var(--yellow); }
.shortcut { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--smoke); }
kbd {
  font-family: var(--font-title); font-size: 0.75rem; font-weight: 600; color: var(--snow);
  background: var(--graphite); border: 1px solid var(--steel); border-bottom-width: 0.125rem;
  border-radius: 0.35rem; padding: 0.14rem 0.45rem; min-width: 1.5rem; text-align: center; line-height: 1;
}

/* --------------------------------------------------------------------------
   9d. Barra de manual "Como jogar" (abaixo da tela do game)
   Mostra teclas (PC) e gestos (celular) em colunas; reaproveita .shortcut/kbd.
   -------------------------------------------------------------------------- */
.game-manual {
  max-width: var(--reading); margin: 1.5rem auto 0;
  padding: 0.9rem 1.1rem; background: var(--charcoal);
  border: 1px solid var(--steel); border-radius: var(--radius);
}
.game-manual__label {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-title); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--yellow);
  margin: 0 0 0.7rem;
}
.game-manual__label i { font-size: 0.95rem; }
.game-manual__body { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; }
.game-manual__col { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.game-manual__sub {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; font-weight: 600; color: var(--smoke);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.game-manual__sub i { color: var(--yellow); font-size: 0.85rem; }
.game-manual .shortcut { font-size: 0.82rem; color: var(--snow); }
.game-manual .shortcut i { color: var(--smoke); }

/* --------------------------------------------------------------------------
   9e. Manual / artigo SEO abaixo do game (reaproveita a tipografia de .page)
   -------------------------------------------------------------------------- */
.manual-sep { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--steel); }

/* --------------------------------------------------------------------------
   9e. Retângulo "em desenvolvimento" (páginas de game ainda não construído)
   -------------------------------------------------------------------------- */
.wip {
  display: grid; place-items: center; text-align: center; gap: 0.9rem;
  min-height: 20rem; padding: 2.75rem 1.5rem;
  border: 0.125rem dashed var(--steel); border-radius: var(--radius-lg); color: var(--smoke);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 0.875rem, rgba(255,255,255,0.015) 0.875rem, rgba(255,255,255,0.015) 1.75rem),
    var(--charcoal);
}
.wip__icon { font-size: 3rem; color: var(--yellow); line-height: 1; }
.wip__badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-title);
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--pitch); background: var(--yellow); padding: 0.32rem 0.85rem; border-radius: 6.25rem;
}
.wip__title { font-family: var(--font-title); font-weight: 600; font-size: 1.35rem; color: var(--snow); }
.wip p { max-width: 32rem; margin: 0; }

/* --------------------------------------------------------------------------
   9f. Modo stage — games de tela cheia (canvas)
   O game ocupa a "dobra" (viewport menos o header), em largura fluida; o
   artigo e o footer fluem normalmente abaixo. --header-height vem do JS.
   -------------------------------------------------------------------------- */
.stage {
  width: 100%;
  min-height: calc(100svh - var(--header-height, 4.25rem));
  display: flex; flex-direction: column;
  background: #000; /* moldura preta atrás do game, estilo "stage" */
  border-block: 1px solid var(--steel);
}
.stage__bar {
  display: flex; align-items: center; gap: 0.75rem 1rem; flex-wrap: wrap;
  padding: 0.55rem clamp(1rem, 4vw, 2rem);
  background: var(--charcoal); border-bottom: 1px solid var(--steel);
}
.stage__bar .back-link { margin: 0; }
.stage__title {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; color: var(--snow);
}
.stage__title i { color: var(--yellow); }
.stage__bar .shortcuts { margin: 0 0 0 auto; max-width: none; padding: 0.3rem 0.7rem; }
.stage__stage {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}
.stage__stage > canvas {
  display: block; max-width: 100%; max-height: 100%;
  background: var(--pitch); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  touch-action: none; /* evita rolagem ao jogar no toque */
}
.stage__overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  gap: 0.85rem; padding: 1.5rem; background: rgba(14, 15, 19, 0.82);
}
.stage__overlay[hidden] { display: none; }
.stage__overlay h2 { font-family: var(--font-title); color: var(--snow); font-size: clamp(1.5rem, 5vw, 2.25rem); }
.stage__overlay p { color: var(--smoke); max-width: 26rem; }
.stage__scoreboard {
  display: flex; gap: 1.75rem; align-items: center; justify-content: center;
  padding: 0.55rem 1rem; background: var(--charcoal); border-top: 1px solid var(--steel);
}
.stage__scoreboard span { color: var(--smoke); font-size: 0.85rem; display: inline-flex; gap: 0.4rem; align-items: center; }
.stage__scoreboard b { font-family: var(--font-title); color: var(--yellow); font-size: 1.15rem; }

/* Jogo "embed" (fonte externa) que preenche o platform inteiro. O JS mede este
   elemento ([data-game-raiz]) para dimensionar o canvas. */
.stage__stage:has(.game-embed) { padding: 0; }
.stage__stage:has(.flux) { padding: 0; }
.stage__stage:has(.dottrack) { padding: 0; }
.game-embed { position: absolute; inset: 0; overflow: hidden; }
.game-embed canvas { max-width: 100%; max-height: 100%; }

/* Placeholder de texto SEO ainda não escrito (visível para o autor) */
.seo-todo { font-style: italic; color: var(--smoke); padding: 1rem 1.25rem; border: 1px dashed var(--steel); border-radius: var(--radius-sm); background: rgba(255,255,255,.02); }

/* --------------------------------------------------------------------------
   10. Toast (feedback) e Modal (confirmação)
   -------------------------------------------------------------------------- */
.toast-area { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; width: max-content; max-width: 90vw; }
.toast { background: var(--snow); color: var(--pitch); padding: 0.75rem 1.25rem; border-radius: 6.25rem; font-weight: 600; box-shadow: var(--shadow-lg); animation: toast-entra 0.25s ease; }
@keyframes toast-entra { from { transform: translateY(1rem); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-fundo { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.7); display: grid; place-items: center; padding: 1.25rem; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--charcoal); border: 1px solid var(--steel); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2rem; max-width: 26rem; width: 100%; text-align: center; }
.modal h3 { color: var(--snow); margin-bottom: 0.5rem; }
.modal p { color: var(--smoke); margin-bottom: 1.5rem; }
.modal__acoes { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   11. Rodapé (o mesmo em todas as páginas)
   -------------------------------------------------------------------------- */
.footer { margin-top: auto; background: #0a0b0e; border-top: 1px solid var(--steel); color: var(--smoke); padding-block: 2.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; align-items: center; }
.footer .brand { color: var(--snow); }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { color: var(--smoke); font-weight: 600; transition: color var(--transition); }
.footer__links a:hover { color: var(--yellow); }
.footer__credits { width: 100%; border-top: 1px solid var(--steel); padding-top: 1.25rem; margin-top: 0.5rem; font-size: 0.875rem; color: #808892; }

/* --------------------------------------------------------------------------
   12. Confete + preferência de movimento reduzido
   -------------------------------------------------------------------------- */
.confetti { position: fixed; top: -0.625rem; width: 0.7rem; height: 0.7rem; z-index: 150; pointer-events: none; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
  .chip { animation: none; }
}
