/* Páginas estáticas do portal (cada jogo e as institucionais): o tema escuro e neon do portal, em coluna de leitura. */
.pagina {
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 12px var(--margem) 56px;
}

.pagina:focus {
  outline: none;
}

/* ------------------------------------------------------------------ trilha */
.trilha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.trilha a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.trilha [aria-current] {
  color: var(--texto);
  font-weight: 700;
}

/* ------------------------------------------------------------------ topo do jogo */
.jogo-topo {
  display: grid;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.jogo-arte {
  width: 100%;
  border-radius: var(--raio);
  border: 1px solid rgba(140, 70, 255, 0.45);
  box-shadow: var(--sombra), 0 0 50px rgba(140, 70, 255, 0.28);
  background: #000;
}

.jogo-resumo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.jogo-resumo h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, #c9c3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jogo-chamada {
  margin: 0;
  color: var(--texto-suave);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  text-wrap: pretty;
}

.jogo-resumo .card-acoes {
  padding-top: 4px;
}

@media (min-width: 900px) {
  .jogo-topo {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ texto do jogo e das institucionais */
.jogo > section,
.texto {
  max-width: 820px;
  margin: 0 auto;
}

.jogo > section + section {
  margin-top: clamp(28px, 4vw, 44px);
}

.jogo h2,
.texto h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.2;
  font-weight: 900;
}

.jogo h2::before,
.texto h2::before {
  content: '';
  flex: none;
  width: 6px;
  height: 1.1em;
  border-radius: 3px;
  background: var(--degrade);
  box-shadow: 0 0 12px rgba(140, 70, 255, 0.6);
}

.jogo section p,
.jogo section li,
.chamada-final p,
.texto p,
.texto li {
  color: var(--texto-suave);
  font-size: 1.04rem;
  text-wrap: pretty;
}

.jogo section p,
.chamada-final p,
.texto p {
  margin: 0 0 14px;
}

.jogo strong,
.texto strong {
  color: var(--texto);
}

/* Passo a passo com números em círculo neon. */
.passos {
  counter-reset: passo;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.passos li {
  counter-increment: passo;
  position: relative;
  min-height: 34px;
  padding: 4px 0 0 48px;
}

.passos li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--degrade);
  color: #fff;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 14px rgba(140, 70, 255, 0.45);
}

/* Controles: dois cartões, celular e computador. */
.controles {
  display: grid;
  gap: 16px;
}

.controle {
  padding: 18px 20px 6px;
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), var(--cartao);
}

.controle h3 {
  margin: 0 0 8px;
  color: var(--ciano);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.controle ul,
.lista-modos,
.dicas,
.texto ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.controle li,
.lista-modos li,
.dicas li,
.texto li {
  margin-bottom: 8px;
}

.lista-modos li::marker,
.controle li::marker,
.texto li::marker {
  color: var(--magenta);
}

.dicas {
  list-style: none;
  padding-left: 0;
}

.dicas li {
  position: relative;
  padding-left: 30px;
}

.dicas li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--ciano);
  box-shadow: 0 0 10px rgba(30, 225, 255, 0.7);
  transform: rotate(45deg);
}

@media (min-width: 640px) {
  .controles {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------------------ imagens do jogo */
.jogo > section:has(.galeria) {
  max-width: none;
}

.jogo > section:has(.galeria) h2 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.galeria {
  display: grid;
  gap: clamp(12px, 2vw, 22px);
}

.galeria figure {
  margin: 0;
  min-width: 0;
}

.galeria img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--borda);
  box-shadow: var(--sombra);
  background: #000;
}

.galeria figcaption {
  margin-top: 8px;
  color: var(--texto-suave);
  font-size: 0.9rem;
  text-align: center;
}

.galeria-deitada {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* Capturas em pé: no celular, uma fileira que desliza para o lado; a partir de 640 px, as três lado a lado. */
.galeria-em-pe {
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}

.galeria-em-pe figure {
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .galeria-em-pe {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 980px;
    margin: 0 auto;
    overflow: visible;
  }
}

/* ------------------------------------------------------------------ chamada final e outros jogos */
.chamada-final {
  max-width: 820px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 22px;
  border: 1px solid rgba(140, 70, 255, 0.5);
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(255, 46, 160, 0.16), transparent 70%),
    radial-gradient(600px 220px at 100% 100%, rgba(30, 225, 255, 0.14), transparent 70%),
    var(--cartao);
  box-shadow: var(--sombra), 0 0 50px rgba(140, 70, 255, 0.2);
  text-align: center;
}

.chamada-final h2 {
  justify-content: center;
}

.chamada-final h2::before {
  display: none;
}

.chamada-final .card-acoes {
  justify-content: center;
  margin-top: 0;
}

.outros {
  margin-top: clamp(44px, 6vw, 72px);
}

.outros h2 {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  font-weight: 900;
}

.outros ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr));
  gap: 14px;
}

/* No monitor largo, os nove outros jogos numa fileira só. */
@media (min-width: 1100px) {
  .outros ul {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.outros a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 0 0 10px;
  border-radius: 14px;
  border: 1px solid var(--borda);
  background: var(--cartao);
  color: var(--texto);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.25;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.outros a span {
  padding: 0 10px;
}

.outros a:hover {
  border-color: rgba(140, 70, 255, 0.6);
  transform: translateY(-2px);
}

.outros img {
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

/* ------------------------------------------------------------------ institucionais */
.texto {
  padding-top: 8px;
}

.texto h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
  font-weight: 900;
}

.texto-chamada {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

.texto section {
  margin-top: 30px;
}

.texto a {
  overflow-wrap: anywhere;
}

.atualizada {
  font-size: 0.9rem;
  opacity: 0.8;
}
