/* =========================================================
   PROJETO ARES — estilo PIXEL ART
   Paleta e ideia visual do design da equipe: tons de Marte,
   bordas quadradas grossas, sombras "duras" e fontes pixeladas.
   Mobile-first: o básico é para celular; telas maiores
   ganham ajustes nos @media no fim do arquivo.
   ========================================================= */


/* Números legíveis: na Pixelify Sans o "5" parece um "S" e o "3" parece um "9".
   Esta fonte só tem os dígitos 0–9 (da VT323, licença OFL), então o resto do
   texto continua na Pixelify. size-adjust deixa os números da altura das letras. */
@font-face {
  font-family: "Ares Digitos";
  src: url("../fonts/vt323-digitos.woff2") format("woff2");
  font-weight: 100 900;
  size-adjust: 125%;
  font-display: swap;
  unicode-range: U+30-39;
}

/* ---------- 1. CORES E MEDIDAS (mude aqui para mudar o jogo todo) ---------- */
:root {
  /* Fundo e textos */
  --fundo: #1a0f14;          /* noite marciana */
  --cartao: #2b1820;         /* caixas e painéis */
  --cartao-2: #3a2029;       /* caixa um pouco mais clara */
  --linha: #5a3040;          /* bordas */
  --texto: #ffe9d6;          /* texto principal */
  --texto-suave: #d9b8a4;    /* texto secundário */
  --sombra: #0a0406;         /* sombra dura dos blocos */

  /* Destaques */
  --acento: #ff8a4c;         /* laranja Marte: botões e títulos */
  --acento-escuro: #b8532a;
  --marte: #e8673c;
  --terra: #3f8cff;

  /* Cada recurso tem sua cor (sempre junto com ícone + texto) */
  --o2: #6fd3ff;             /* ar e água: azul-claro */
  --comida: #6be37a;         /* comida: verde */
  --escudo: #4f8dff;         /* escudo: azul */
  --energia: #ffd24a;        /* energia: amarelo */
  --radiacao: #ff7ab6;       /* radiação: rosa */
  --comms: #c59bff;          /* rádio: lilás */

  /* Previsões */
  --bom: #6be37a;
  --ruim: #ff8a7a;

  /* Pixel art: borda grossa e sombra dura (sem cantos redondos) */
  --borda: 4px;
  --bloco: 4px 4px 0 var(--sombra);
  --toque: 48px;             /* tamanho mínimo de botão (acima dos 44px pedidos) */

  /* Fontes */
  --fonte-titulo: "Press Start 2P", "Courier New", monospace;   /* textos curtos */
  --fonte-texto: "Ares Digitos", "Pixelify Sans", "Courier New", monospace;     /* textos longos (números na VT323) */
  --fonte-logo: "Tiny5 Duo", var(--fonte-titulo);

  color-scheme: dark;
}


/* ---------- 2. BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; }
/* A Pixelify Sans desenha "fi" parecido com um "A" ("Acou" em vez de "ficou"): sem ligaduras */
html { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }

/* Fundo: céu escuro com algumas estrelas quadradinhas */
body {
  min-height: 100vh;
  overflow-x: hidden;               /* nunca rolar para os lados */
  font-family: var(--fonte-texto);
  font-size: 1.125rem;              /* 18px: a fonte pixel precisa ser grande para ler bem */
  line-height: 1.45;
  color: var(--texto);
  background-color: var(--fundo);
  background-image:
    linear-gradient(#ffe9d6, #ffe9d6),
    linear-gradient(#ffe9d6, #ffe9d6),
    linear-gradient(#c9a08c, #c9a08c),
    linear-gradient(#ffe9d6, #ffe9d6);
  background-size: 2px 2px;
  background-repeat: no-repeat;
  background-position: 12% 8%, 78% 14%, 40% 30%, 90% 60%;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img,
svg { display: block; max-width: 100%; }

h1,
h2 {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  line-height: 1.5;
}

h1 { font-size: 1.05rem; color: var(--acento); }
h2 { font-size: .8rem; }

b { font-weight: 700; }
a { color: var(--o2); }

/* Contorno visível ao navegar com teclado */
:focus-visible {
  outline: 4px solid var(--energia);
  outline-offset: 2px;
}

/* Ícones em pixel: nunca borrar */
.ico {
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
  image-rendering: pixelated;
}

/* Texto só para leitor de tela (não aparece na tela) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Link "Pular para o jogo": só aparece com Tab */
.pular {
  position: absolute;
  left: 8px;
  top: -80px;
  padding: 10px 14px;
  background: var(--energia);
  color: var(--fundo);
  font-weight: 700;
  border: var(--borda) solid var(--sombra);
  z-index: 10;
}
.pular:focus { top: 8px; }


/* ---------- 3. TOPO (logo + idioma) ---------- */
.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.marca { display: flex; align-items: center; gap: 10px; min-width: 0; }

.marca-planeta { width: 32px; height: 32px; image-rendering: pixelated; }

.marca-nome {
  font-family: var(--fonte-logo);
  font-size: clamp(1.25rem, 5.5vw, 1.7rem);
  line-height: 1;
  color: var(--acento);
  white-space: nowrap;
  letter-spacing: .02em;
}

/* Botão PT/EN: o idioma ativo fica destacado (cor + sublinhado) */
.btn-idioma {
  min-height: var(--toque);
  min-width: var(--toque);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: .7rem var(--fonte-titulo);
  color: var(--texto-suave);
  background: var(--cartao);
  border: var(--borda) solid var(--linha);
  box-shadow: var(--bloco);
  cursor: pointer;
}

html[lang="pt-BR"] .btn-idioma .idioma-pt,
html[lang="en"] .btn-idioma .idioma-en {
  color: var(--texto);
  text-decoration: underline 3px var(--energia);
  text-underline-offset: 5px;
}

.btn-idioma:hover { border-color: var(--acento); }


/* ---------- 4. ÁREA DO JOGO ---------- */
#app {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 4px 16px 32px;
}

#app:focus,
#app h1:focus { outline: none; }

/* Cada tela: coluna com espaço entre as partes */
.tela {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: entrar .25s steps(4);
}

/* Ao mexer nos botões, a tela é redesenhada sem animar de novo */
.sem-animacao,
.sem-animacao .evento { animation: none; }

.lead { font-size: 1.2rem; color: var(--texto); }

.subtitulo { font-size: .8rem; color: var(--texto); }

/* Explicação curta de termo científico (sol, mSv...) */
.explica { font-size: 1rem; color: var(--texto-suave); }
.explica b { color: var(--texto); }


/* ---------- 5. BOTÕES ---------- */
.btn {
  min-height: 56px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* 15px: mais fácil de ler para quem está aprendendo a ler (antes: 12,8px) */
  font: .95rem/1.4 var(--fonte-titulo);
  border: var(--borda) solid var(--sombra);
  cursor: pointer;
}

/* Botão principal: laranja, afunda ao apertar */
.btn-principal {
  width: 100%;
  color: #2b1008;
  background: var(--acento);
  box-shadow: inset -4px -4px 0 var(--acento-escuro), var(--bloco);
}

.btn-principal:hover { background: #ffa06a; }
.btn-principal:active { transform: translate(4px, 4px); box-shadow: inset -4px -4px 0 var(--acento-escuro); }
.btn-principal .ico { width: 2.4em; height: 1.2em; }
/* Ícones quadrados (seta, som) dentro do botão: sem esticar como a nave */
.btn-principal .ico--seta { width: 1.1em; height: 1.1em; }
.btn-principal .ico--quadrado { width: 2em; height: 2em; }

.btn-principal:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.btn-secundario {
  width: 100%;
  color: var(--texto);
  background: var(--cartao-2);
  border-color: var(--linha);
  box-shadow: var(--bloco);
}

.btn-secundario:hover { border-color: var(--acento); }
.btn-secundario:active { transform: translate(4px, 4px); box-shadow: none; }

/* Botões − e + da energia */
.btn-passo {
  width: var(--toque);
  height: var(--toque);
  flex-shrink: 0;
  font: 1.1rem/1 var(--fonte-titulo);
  color: var(--texto);
  background: #4a2634;
  border: var(--borda) solid var(--linha);
  box-shadow: 3px 3px 0 var(--sombra);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-passo .ico { width: 16px; height: 16px; }

.btn-passo:hover { background: #6a3446; }
.btn-passo:active { transform: translate(3px, 3px); box-shadow: none; }

.btn-passo:disabled {
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}


/* ---------- 6. TELA 1: LANÇAMENTO ---------- */
.tela--lancamento { text-align: center; align-items: center; }

/* Cartões dos astronautas */
.tripulacao {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.tripulacao li { flex: 1 1 96px; max-width: 160px; display: flex; }

/* Cartão do astronauta = botão para escolher o personagem */
.astronauta {
  width: 100%;
  min-height: 48px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--fonte-texto);
  color: var(--texto);
  background: var(--cartao);
  border: var(--borda) solid var(--linha);
  border-bottom: 8px solid var(--traje, var(--linha));
  box-shadow: var(--bloco);
  cursor: pointer;
}

.astronauta:hover { border-color: var(--traje); }
.astronauta:active { transform: translate(4px, 4px); box-shadow: none; }

/* Escolhido: moldura na cor do traje + "✓ você" (não só cor) */
.astronauta--escolhido {
  border-color: var(--traje);
  background: var(--cartao-2);
  box-shadow: 0 0 0 3px var(--traje), var(--bloco);
}

.astronauta .rosto-svg { width: 64px; height: 64px; }

.astronauta-nome { font: .75rem var(--fonte-titulo); }
.astronauta-papel { font-size: 1rem; color: var(--texto-suave); }
/* Bônus do personagem: estrelinha + frase curta */
/* Estrelinha à esquerda, frase ao lado (quebra de linha fica alinhada ao texto, não embaixo da estrela) */
.astronauta-bonus { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .9rem; line-height: 1.2; color: var(--energia); }
.astronauta-bonus > .ico { width: 1.1em; height: 1.1em; flex: none; }
.astronauta-bonus-texto { text-align: left; }
.selo-bonus { display: inline-flex; color: var(--energia); cursor: help; }
.selo-bonus .ico { width: 14px; height: 14px; }

.astronauta-voce {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: .55rem/1 var(--fonte-titulo);
  text-transform: uppercase;
  color: var(--texto-suave);
}

.astronauta--escolhido .astronauta-voce { color: var(--traje); }

.tela--lancamento .btn-principal { max-width: 380px; }


/* ---------- 7. MAPA EM PIXEL ART (canvas) ---------- */
.mapa-canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  image-rendering: pixelated;      /* aumenta sem borrar */
  border: var(--borda) solid var(--linha);
  background: #000;
  cursor: pointer;
  touch-action: manipulation;
}

.mapa-canvas--enfeite { cursor: default; max-width: 520px; }

/* Selo de ciência: pontos enviados / meta */
.selo-ciencia {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: 1.05rem;
  color: var(--comms);
  background: var(--fundo);
  border: 3px solid var(--comms);
}

.selo-ciencia b { color: var(--texto); }

/* Trilha Terra → Marte (viagem) */
.mapa-trilha { display: flex; align-items: center; gap: 8px; }

.mapa-ponto { width: 12px; height: 12px; flex-shrink: 0; }
.mapa-ponto--terra { background: var(--terra); }
.mapa-ponto--marte { background: var(--marte); }

.mapa-linha {
  position: relative;
  flex: 1;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--linha) 0 6px, transparent 6px 12px);
}

.mapa-feito {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progresso, 0%);
  background: var(--energia);
  transition: width .6s steps(6);
}

/* Avisos curtos com ícone */
.aviso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  font-size: 1rem;
}

.aviso--rad { background: var(--fundo); border-left: 6px solid var(--radiacao); }
.aviso--rad .ico { color: var(--radiacao); }


/* ---------- 8. TRIPULAÇÃO VIVA (rostos + fala, lado a lado) ---------- */
.tripulacao-viva {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rostos {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.rosto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font: .5rem var(--fonte-titulo);
}

.rosto-svg {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border: 3px solid var(--traje, var(--linha));
  background: var(--fundo);
}

/* Quem está falando ganha moldura amarela; o jogador tem o nome sublinhado */
.rosto--falando .rosto-svg { border-color: var(--energia); box-shadow: 0 0 0 2px var(--energia); }
.rosto--jogador .rosto-nome { text-decoration: underline 2px var(--traje); text-underline-offset: 3px; }

.rosto--assustado .rosto-svg { animation: tremer .3s steps(2) 3; }
.sem-animacao .rosto-svg { animation: none; }

/* Balão de fala em pixel, com ponta para a esquerda (para os rostos) */
.fala {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  background: var(--texto);
  color: var(--fundo);
  border: 3px solid var(--sombra);
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.fala::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 8px;
  height: 10px;
  background: var(--texto);
  border: 3px solid var(--sombra);
  border-right: 0;
  transform: translateY(-50%);
}

.fala .ico { width: 1em; height: 1em; display: inline-block; vertical-align: -2px; }


/* ---------- 9. PAINEL COMPACTO: energia, sistemas e barras ---------- */
.painel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--cartao);
  border: var(--borda) solid var(--linha);
  box-shadow: var(--bloco);
}

/* Energia em uma linha: livre / total, painéis + bateria */
.energia {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 6px 10px;
  background: var(--fundo);
  border: 3px solid var(--energia);
}

.ico--energia { color: var(--energia); width: 1.6em; height: 1.6em; }
.energia-rotulo { font: .6rem var(--fonte-titulo); }
.energia-valor { font-size: 1.05rem; }
.energia-valor b { font: 1rem var(--fonte-titulo); color: var(--energia); }

.energia-detalhe {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  color: var(--texto-suave);
}

.energia-detalhe .ico { width: 1em; height: 1em; color: var(--energia); }

/* Os 4 sistemas em grade 2×2 */
.aloc--o2     { --cor: var(--o2); }
.aloc--comida { --cor: var(--comida); }
.aloc--escudo { --cor: var(--escudo); }
.aloc--comms  { --cor: var(--comms); }

.sistemas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sistema {
  min-width: 0;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--fundo);
  border: 3px solid var(--linha);
  border-left: 6px solid var(--cor);
}

/* O sistema da estação onde o personagem está fica aceso */
.sistema.aloc--aqui { border-color: var(--cor); box-shadow: 0 0 0 2px var(--cor); }

.sistema-topo { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; min-width: 0; }
.sistema-topo > .ico { color: var(--cor); width: 1.3em; height: 1.3em; }

/* O nome fica inteiro numa linha; o "?" e o efeito descem se não couber */
.sistema-nome {
  flex: 1 0 auto;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  white-space: nowrap;
}

.sistema-controles { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.sistema .btn-passo { width: 44px; height: 44px; font-size: 1rem; }

/* Pontos de energia: quadradinhos cheios (on) ou vazios */
.aloc-pontos { display: flex; gap: 2px; }

.aloc-pontos i {
  width: 8px;
  height: 16px;
  background: #000;
  border: 2px solid var(--linha);
}

.aloc-pontos i.on { background: var(--energia); border-color: var(--energia); }

/* Barras finas, uma por linha */
.barras { display: flex; flex-direction: column; gap: 6px; }

.barra--o2     { --cor: var(--o2); }
.barra--comida { --cor: var(--comida); }
.barra--rad    { --cor: var(--radiacao); }

.barra-topo { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 1rem; }
.barra-topo .ico { color: var(--cor); width: 1.2em; height: 1.2em; }
.barra-nome { font-weight: 700; }
.barra-num { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* Trilho em blocos, como barra de vida de videogame */
.barra-trilho {
  position: relative;
  height: 12px;
  background: #000;
  border: 2px solid var(--linha);
  overflow: hidden;
}

.barra-fill,
.barra-prev {
  position: absolute;
  inset: 0 auto 0 0;
  transition: width .4s steps(8);
}

.barra-fill { width: var(--val, 50%); background: var(--cor); }

/* Previsão do fim do turno: listras atrás do valor atual */
.barra-prev {
  width: var(--prev, 0%);
  background: repeating-linear-gradient(90deg, var(--cor) 0 4px, transparent 4px 8px);
  opacity: .5;
}

.barra-trilho::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), #000 calc(10% - 2px) 10%);
}

/* Previsão (+/-): seta + número + cor (nunca só cor) */
.previsao {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid currentColor;
}

.previsao .ico { width: 1em; height: 1em; }
.previsao--bom    { color: var(--bom); }
.previsao--ruim   { color: var(--ruim); }
.previsao--neutra { color: var(--texto-suave); }

/* Botão "?" com explicação curta (área de toque de 44px, desenho de 24px) */
.ajuda { position: relative; display: inline-flex; flex-shrink: 0; }

.ajuda > summary {
  width: 44px;
  height: 44px;
  margin: -10px -8px;
  display: grid;
  place-items: center;
  list-style: none;
  cursor: pointer;
}

.ajuda > summary::-webkit-details-marker { display: none; }

.ajuda > summary span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font: .55rem var(--fonte-titulo);
  color: var(--fundo);
  background: var(--texto-suave);
  border: 2px solid var(--sombra);
}

.ajuda[open] > summary span { background: var(--energia); }

.ajuda-texto {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: -6px;
  width: min(280px, calc(100vw - 48px));
  padding: 8px 10px;
  background: var(--texto);
  color: var(--fundo);
  border: var(--borda) solid var(--sombra);
  box-shadow: var(--bloco);
  font-size: .95rem;
  line-height: 1.35;
  text-align: left;
}

.ajuda--esq .ajuda-texto { right: auto; left: -6px; }
.ajuda-texto b { color: var(--fundo); }


/* ---------- 11. CARTAS DE DECISÃO (eventos) ---------- */
.evento {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--cartao);
  border: var(--borda) solid var(--cor);
  box-shadow: var(--bloco);
  animation: chacoalhar .4s steps(4);
}

.evento > .ico { width: 2.4em; height: 2.4em; color: var(--cor); }

.evento--poeira { --cor: #f0a35e; }
.evento--solar  { --cor: var(--energia); }
.evento--filtro { --cor: var(--o2); }
.evento--praga  { --cor: var(--comida); }

.evento-corpo { flex: 1; min-width: 0; }
.evento-titulo { margin-bottom: 6px; color: var(--cor); }
.evento-pergunta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; }
.evento-passo {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: var(--fundo);
  background: var(--cor);
  font: 700 .65rem/1.4 var(--fonte-titulo);
}

.escolhas { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

.btn-escolha {
  min-height: 56px;
  width: 100%;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font: 700 1.05rem var(--fonte-texto);
  color: var(--texto);
  background: var(--fundo);
  border: var(--borda) solid var(--linha);
  box-shadow: 3px 3px 0 var(--sombra);
  cursor: pointer;
}

.btn-escolha:hover { border-color: var(--cor, var(--acento)); }
.btn-escolha:active { transform: translate(3px, 3px); box-shadow: none; }

/* Opção escolhida: borda colorida + marca ✓ (não só cor) */
.btn-escolha.escolhida {
  border-color: var(--cor, var(--energia));
  background: var(--cartao-2);
}

.btn-escolha.escolhida .escolha-texto::before {
  content: "";
  display: inline-block;
  width: .9em; height: .9em;
  margin-right: .4em;
  vertical-align: -.05em;
  background: var(--cor, var(--energia));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M10 2h2v2h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-1v-1h-1v-1h2v1h1v1h1v1h1v-1h1v-1h1v-1h1v-1h1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M10 2h2v2h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-1v-1h-1v-1h2v1h1v1h1v1h1v-1h1v-1h1v-1h1v-1h1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.escolha-efeitos { display: flex; flex-wrap: wrap; gap: 6px; }

/* Chips de efeito: ícone + número */
.efeito {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid currentColor;
}

.efeito .ico { width: 1.1em; height: 1.1em; }
.efeito--bom    { color: var(--bom); }
.efeito--ruim   { color: var(--ruim); }
.efeito--neutro { color: var(--texto-suave); }

.dica-escolha {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 10px 12px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--texto);
  background: var(--cartao);
  border: 3px solid var(--energia);
  box-shadow: 3px 3px 0 var(--sombra);
}
.dica-escolha > .ico { width: 1.6em; height: 1.6em; flex: 0 0 auto; color: var(--energia); }
.dica-escolha b {
  display: block;
  margin-bottom: 3px;
  color: var(--energia);
  font: 700 .65rem/1.4 var(--fonte-titulo);
}


/* ---------- 11b. MINIGAMES DE 15 SEGUNDOS ---------- */
/* Opção com minigame: borda na cor da carta + selo "Minigame" */
.btn-escolha--mini { border-color: var(--cor, var(--acento)); }
.efeito--variavel { color: var(--energia); }
.selo-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--fundo);
  background: var(--cor, var(--energia));
}
.selo-mini .ico { width: .7em; height: .7em; }

/* Janela por cima de tudo (o fundo não rola enquanto ela está aberta) */
body.mini-aberto { overflow: hidden; }
.mini-camada {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow-y: auto;
  background: rgba(10, 4, 6, .88);
}

.mini {
  --cor: var(--energia);
  width: min(100%, 560px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  background: var(--cartao);
  border: var(--borda) solid var(--cor);
  box-shadow: var(--bloco);
  outline: none;
}
.mini.evento--poeira { --cor: #f0a35e; }
.mini.evento--solar  { --cor: var(--energia); }
.mini.evento--filtro { --cor: var(--o2); }
.mini.evento--praga  { --cor: var(--comida); }

.mini-titulo { display: flex; align-items: center; gap: 10px; color: var(--cor); }
.ico--titulo { width: 1.5em; height: 1.5em; flex: none; }
.ico--grande { width: 2.4em; height: 2.4em; }
.ico--gigante { width: 88px; height: 88px; color: var(--cor); }
.mini-instrucao { font-weight: 700; }

.mini-status { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mini-tempo { flex: 1; height: 18px; background: var(--fundo); border: 3px solid var(--linha); }
.mini-tempo-fill { width: 100%; height: 100%; background: var(--energia); }
.mini-segundos { min-width: 2ch; text-align: right; }
.mini-placar { min-height: 1.45em; color: var(--texto-suave); font-weight: 700; }

/* A arena: onde o jogo acontece (touch-action: none = arrastar não rola a página) */
.mini-arena {
  position: relative;
  height: 240px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  background: #120a0e;
  border: 3px solid var(--linha);
}
.mini-arena--previa { display: grid; place-items: center; height: 140px; touch-action: auto; }
.mini-arena button { font: inherit; cursor: pointer; }
.mini-arena button:focus-visible { outline: 4px solid #fff; outline-offset: -4px; }

/* Jogo 1: painéis solares com poeira (2 camadas: mais opaca = mais poeira) */
.arena--paineis, .arena--estufa, .arena--filtro {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 5px;
  padding: 6px;
}
.arena--paineis { grid-template-rows: repeat(4, 1fr); }
.cel {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background:
    linear-gradient(90deg, transparent 48%, #3f66c4 48% 52%, transparent 52%),
    linear-gradient(transparent 48%, #3f66c4 48% 52%, transparent 52%),
    #1f3a85;
  border: 3px solid #4f8dff;
}
.cel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(#7a4a26 1.5px, transparent 2px) 0 0 / 7px 7px, #c98a52;
  opacity: 0;
  pointer-events: none;
}
.cel--1::after { opacity: .5; }
.cel--2::after { opacity: .95; }

/* Jogo 2: prótons caem do céu em direção ao abrigo */
.arena--ceu { background: linear-gradient(#1b0b25, #4a2342); }
.abrigo {
  position: absolute;
  inset: auto 0 0 0;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--o2);
  background: var(--linha);
  border-top: 4px solid var(--o2);
}
.arena--dano { box-shadow: inset 0 0 0 5px var(--ruim); }
.proton {
  position: absolute;
  top: -52px;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--fundo);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  background: var(--energia);
  border: 3px solid #fff2b0;
  box-shadow: 0 0 0 3px rgba(255, 210, 74, .35);
  transition: top var(--vida, 2300ms) linear, transform .18s, opacity .18s;
}
.proton--cai { top: calc(100% - 92px); }
.proton--ok { transform: scale(1.5); opacity: 0; background: var(--bom); }

/* Jogo 3: parafusos numerados, na ordem */
.arena--filtro { grid-template-rows: repeat(3, 1fr); gap: 8px; padding: 10px; place-items: center; }
.parafuso {
  width: min(100%, 60px);
  aspect-ratio: 1;
  padding: 0;
  color: var(--fundo);
  font: 700 1.3rem var(--fonte-titulo);
  background: #9aa7bd;
  border: 4px solid #e2e9f4;
  box-shadow: 3px 3px 0 var(--sombra);
}
.parafuso--ok { background: var(--bom); border-color: #fff; opacity: .6; box-shadow: none; }
.parafuso--ok::after {
  content: "";
  display: inline-block;
  width: .7em; height: .7em;
  margin-left: 2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M10 2h2v2h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-1v-1h-1v-1h2v1h1v1h1v1h1v-1h1v-1h1v-1h1v-1h1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M10 2h2v2h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-1v-1h-1v-1h2v1h1v1h1v1h1v-1h1v-1h1v-1h1v-1h1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.parafuso--erro { animation: chacoalhar .3s steps(3); border-color: var(--ruim); }
.arena--travada { outline: 4px dashed var(--ruim); outline-offset: -4px; }

/* Jogo 4: folhas (as doentes têm manchas brancas e um "!") */
.arena--estufa { grid-template-rows: repeat(3, 1fr); gap: 6px; }
.folha {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  color: var(--comida);
  background: #173a22;
  border: 3px solid #2f7a45;
}
.ico--folha { width: 2.2em; height: 2.2em; }
.folha--doente { color: #d6d6ae; background: #4a4a3a; border: 3px dashed #f1f1d8; }
.folha--doente::after {
  content: "!";
  position: absolute;
  top: 2px;
  right: 6px;
  font: 700 1.1rem var(--fonte-titulo);
  color: var(--ruim);
}
.folha--doente::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(#fff 2px, transparent 2.5px) 0 0 / 11px 11px;
  opacity: .55;
  pointer-events: none;
}
.folha--curada { background: #2f7a45; transform: scale(1.08); }
.folha--erro { animation: chacoalhar .3s steps(3); border-color: var(--ruim); }

/* Resultado */
.mini-resultado { display: flex; flex-direction: column; gap: 8px; }
.mini-nota { font: 400 1rem var(--fonte-titulo); color: var(--cor); }
.mini-barra { height: 18px; background: var(--fundo); border: 3px solid var(--linha); }
.mini-barra > div { height: 100%; background: var(--cor); }
.mini-veredito { font-weight: 700; }
.mini-efeito-titulo { color: var(--texto-suave); }
.mini-fato { padding: 8px; font-size: 1rem; color: var(--texto-suave); border: 3px dashed var(--linha); }
.mini-fato b { color: var(--cor); }

.mini-acoes { display: flex; flex-direction: column; gap: 10px; }
/* Botões da janela do minigame: largura toda, alinhados com a arena */
.mini-acoes .btn { width: 100%; max-width: none; align-self: stretch; }

/* Celular deitado: arena mais baixa para a janela caber */
@media (max-height: 560px) {
  .mini-arena { height: 190px; }
  .mini-arena--previa { height: 100px; }
}


/* ---------- 12. DIÁRIO DE BORDO ---------- */
.diario-ultimo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--fundo);
  border: 3px dashed var(--linha);
  font-size: 1.05rem;
}

.diario-ultimo .ico { color: var(--texto-suave); }
.diario-ultimo p + p { margin-top: 6px; }

.tela--diario h1 { display: flex; align-items: center; gap: 10px; }

.diario { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.diario-item {
  padding: 10px 12px;
  background: var(--cartao);
  border: var(--borda) solid var(--linha);
  border-left: 8px solid var(--texto-suave);
}

.diario-item--poeira { border-left-color: #f0a35e; }
.diario-item--solar  { border-left-color: var(--energia); }
.diario-item--bom    { border-left-color: var(--comida); }


/* ---------- 13. TELA 5: DEBRIEFING ---------- */
.tela--fim { text-align: center; align-items: center; }

/* Estrelas: 3 = missão cumprida, 2 = todos voltaram bem, 1 = encerrada mais cedo */
.medalha { display: flex; gap: 8px; }
.estrela { width: 48px; height: 48px; color: var(--linha); }
.estrela--on { color: var(--energia); animation: pular .4s steps(4) backwards; }
.estrela--on:nth-child(2) { animation-delay: .15s; }
.estrela--on:nth-child(3) { animation-delay: .3s; }

.tela--fim-cumprida h1 { color: var(--bom); }
.tela--fim-sobreviveram h1 { color: var(--energia); }

.resumo {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.resumo li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--cartao);
  border: 3px solid var(--linha);
}

.resumo b { font-size: 1.15rem; }

.debrief {
  width: 100%;
  padding: 14px;
  text-align: left;
  background: var(--cartao);
  border: var(--borda) solid var(--linha);
  border-top: 8px solid var(--cor);
  box-shadow: var(--bloco);
}

.debrief--certo { --cor: var(--comida); }
.debrief--dica  { --cor: var(--energia); }

.debrief h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--cor); }
.debrief h2 .ico { color: var(--cor); }
.debrief ul { padding-left: 1.2em; }
.debrief li + li { margin-top: 6px; }

.tela--fim .btn-principal { max-width: 380px; }


/* ---------- 14. RODAPÉ (fontes dos dados) ---------- */
.rodape {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 28px;
  font-size: .95rem;
  color: var(--texto-suave);
  border-top: var(--borda) solid var(--linha);
}

.rodape-aviso { margin-bottom: 8px; }
.rodape-aviso b { color: var(--energia); }
.rodape-fontes { padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.rodape-credito { margin-top: 10px; }


/* ---------- 14b. TELA DO JOGO SEM ROLAGEM ---------- */
.jogo-grade { display: flex; flex-direction: column; gap: 10px; }

.jogo-esquerda {
  position: relative;          /* a carta de decisão aparece por cima desta coluna */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jogo-direita { display: flex; flex-direction: column; gap: 8px; }

/* Mapa com o placar (HUD) por cima, como num videogame */
.mapa-caixa { position: relative; display: flex; justify-content: center; }
.mapa-moldura { position: relative; width: 100%; }
.mapa-moldura .mapa-canvas { display: block; width: 100%; height: auto; }

.hud {
  position: absolute;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;        /* toques passam para o mapa... */
}

.hud .ajuda,
.hud .selo-ciencia { pointer-events: auto; }   /* ...menos nestes */

.hud--topo { top: 8px; }
.hud--rodape { bottom: 8px; }

.hud-titulo {
  font-size: .6rem;
  color: var(--texto);
  padding: 4px 6px;
  background: rgba(10, 4, 6, .8);
  border: 2px solid var(--linha);
}

.hud .selo-ciencia { margin-left: auto; font-size: .95rem; padding: 0 6px; background: rgba(10, 4, 6, .8); }

.hud--rodape .mapa-linha { height: 6px; }
.hud--rodape .mapa-ponto { width: 8px; height: 8px; }

.hud-legenda {
  font-size: .85rem;
  padding: 0 4px;
  color: var(--texto);
  background: rgba(10, 4, 6, .8);
  white-space: nowrap;
}

/* Carta de decisão: no celular aparece no topo da tela (precisa decidir antes);
   em telas grandes fica por cima do mapa (ver o @media no fim) */
.carta-camada { order: -1; }

/* Lembrete da decisão já tomada neste turno */
.selo-decisao {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 4px 8px;
  font-size: .95rem;
  background: var(--fundo);
  border: 3px solid var(--cor);
}

.selo-decisao .ico { color: var(--cor); }
.selo-decisao b { color: var(--cor); }

/* Botões do turno: no celular ficam presos no rodapé da tela (sempre à mão) */
.jogo-acoes {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  gap: 8px;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--fundo);
}

.jogo-acoes .btn-principal { flex: 1; max-width: none; align-self: stretch; }
.btn-diario { width: auto; flex: 0 0 auto; padding: 8px 12px; gap: 8px; font-size: .6rem; align-self: stretch; }
.btn-diario .ico { width: 1.8em; height: 1.8em; }

/* Personagem foi até a cama: o botão de dormir pisca de leve */
.btn--destaque { animation: chamar 1s steps(2) infinite; }

/* ---------- 15. ANIMAÇÕES (curtas, em "passos" como videogame) ---------- */
@keyframes entrar {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes chacoalhar {
  0%, 100% { transform: none; }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes tremer {
  0%, 100% { transform: none; }
  50% { transform: translateX(2px); }
}

@keyframes chamar {
  0%, 100% { box-shadow: inset -4px -4px 0 var(--acento-escuro), var(--bloco); }
  50%      { box-shadow: inset -4px -4px 0 var(--acento-escuro), 0 0 0 4px var(--energia); }
}

@keyframes pular {
  0%   { transform: scale(.4); opacity: 0; }
  70%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

/* Quem pediu menos movimento no aparelho não vê animações (o mapa também para) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* Celular estreito: a palavra "Energia livre" some da tela (o leitor de tela ainda lê) */
@media (max-width: 480px) {
  .energia-rotulo {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Celular e telas estreitas: mensagens com espaço para ler */
@media (max-width: 639px) {
  /* Rostos em cima, balão de fala embaixo ocupando a largura toda */
  .tripulacao-viva { flex-direction: column; align-items: stretch; gap: 12px; }
  .rostos { justify-content: center; }

  .fala::before {
    left: 50%;
    top: -11px;
    width: 12px;
    height: 8px;
    border: 3px solid var(--sombra);
    border-bottom: 0;
    transform: translateX(-50%);
  }

  /* Explicação do "?": caixa fixa, centralizada, acima dos botões do turno */
  .ajuda .ajuda-texto,
  .ajuda--esq .ajuda-texto {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    width: auto;
    z-index: 40;
    font-size: 1rem;
  }
}

/* ---------- 16. TELAS MAIORES (tablet e computador) ---------- */
@media (min-width: 640px) {
  h1 { font-size: 1.25rem; }

  #app { padding: 8px 24px 40px; }

  .btn-principal,
  .btn-secundario { max-width: 420px; align-self: center; }
}

/* Computador e tablet deitado: mapa à esquerda, painel à direita, sem rolar */
@media (min-width: 900px) and (min-height: 540px) {
  .topo { max-width: 1280px; padding: 8px 24px; }
  #app { max-width: 1280px; padding: 0 24px 16px; }

  .tela--jogo { min-height: calc(100dvh - 76px); }

  .jogo-grade { flex-direction: row; align-items: center; gap: 16px; min-height: calc(100dvh - 92px); }

  .jogo-esquerda { flex: 1 1 auto; min-width: 0; min-height: 0; }

  /* Mapa e tripulação juntos, centralizados; o mapa cresce até caber na altura (16:9) */
  .jogo-esquerda { justify-content: center; }
  .mapa-moldura { width: min(100%, calc((100dvh - 230px) * 16 / 9)); }

  .jogo-direita { flex: 0 0 440px; }

  .jogo-acoes { position: static; padding: 0; }

  .hud-titulo { font-size: .75rem; }

  /* As barras ficam embaixo: a explicação delas abre para cima */
  .barras .ajuda-texto { top: auto; bottom: calc(100% + 8px); }

  /* Carta por cima do mapa: cresce o quanto precisar (sem rolagem interna) */
  .carta-camada {
    position: absolute;
    inset: 0 0 auto 0;
    min-height: 100%;
    z-index: 10;
    padding: 8px;
    display: flex;
    align-items: center;
    background: rgba(10, 4, 6, .7);
  }

  .carta-camada .evento { width: 100%; }
  .rosto-svg { width: 48px; height: 48px; }

  /* Lançamento também lado a lado */
  .tela--lancamento { flex-direction: row; align-items: center; text-align: left; gap: 32px; min-height: calc(100dvh - 76px); }
  .tela--lancamento .mapa-canvas--enfeite { flex: 1 1 55%; max-width: none; }
  .lancamento-texto { flex: 1 1 45%; display: flex; flex-direction: column; gap: 14px; }
  .lancamento-texto .tripulacao { justify-content: flex-start; }
  .lancamento-texto .tripulacao li { max-width: none; }
  .lancamento-texto .btn-principal { align-self: stretch; max-width: none; }
}


/* Botões do topo (som + idioma) */
.topo-botoes { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* Celular: os 4 botões não cabem junto com o nome; fica só o planetinha como marca */
@media (max-width: 520px) {
  .marca-nome { display: none; }
  .topo-botoes { gap: 8px; }
}
.btn-idioma { justify-content: center; }
.btn-tut, .btn-som, .btn-dica { padding: 0; }
.btn-tut .ico, .btn-som .ico { width: 22px; height: 22px; }


/* ---------- CAMPO DE NOME e CERTIFICADO ---------- */
.campo-nome {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.campo-nome-rotulo { font: .8rem/1.4 var(--fonte-titulo); color: var(--texto); }
.campo-nome-input {
  width: 100%;
  min-height: var(--toque);
  padding: 10px 14px;
  font: 600 1.2rem/1.3 var(--fonte-texto);
  text-align: inherit;
  color: var(--texto);
  background: var(--cartao);
  border: var(--borda) solid var(--linha);
  border-radius: 0;
  box-shadow: var(--bloco);
}
.campo-nome-input::placeholder { color: var(--texto-suave); opacity: .7; }
.campo-nome-input:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-color: var(--acento); }
.campo-nome-dica { font-size: .95rem; }
.campo-nome--erro .campo-nome-input { border-color: var(--ruim); }
.campo-nome-dica--erro { color: var(--ruim); font-weight: 600; }

.cert {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cert-titulo { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--energia); }
.cert-titulo .ico { color: var(--energia); }
.cert-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1132;
  background: var(--texto);
  border: var(--borda) solid var(--linha);
  box-shadow: var(--bloco);
}
.cert-baixar--ok:disabled { opacity: 1; cursor: default; color: #0f2a14; background: var(--bom); box-shadow: inset -4px -4px 0 #2f9a4c, var(--bloco); }
.cert-aviso { margin: 0; max-width: 32rem; font-weight: 700; color: var(--ruim); text-align: center; }
.cert-aviso:empty { display: none; }

/* ===================== DICAS DO ORBI (cartão de orientação nas telas de missão) ===================== */
.btn-dica { color: var(--energia); }
.btn-dica .ico { width: 22px; height: 22px; }

.dica {
  position: fixed; z-index: 50;
  left: 12px; bottom: 12px;
  width: min(420px, calc(100% - 24px));
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px 12px 10px;
  background: var(--cartao); color: var(--texto);
  border: var(--borda) solid var(--energia);
  border-radius: 14px;
  box-shadow: var(--bloco);
  font-family: var(--fonte-texto);
  animation: dica-entra .25s ease-out;
}
.dica[hidden] { display: none; }

.dica-orbi.orbi { width: 52px; flex: 0 0 auto; }
.dica-corpo { flex: 1; min-width: 0; padding-right: 22px; }
.dica-selo { margin: 0; font-family: var(--fonte-titulo); font-size: 9px; letter-spacing: .08em; color: #2ee6c8; }
.dica-titulo { margin: 4px 0 6px; font-family: var(--fonte-titulo); font-size: 13px; line-height: 1.4; color: var(--acento); }
.dica-texto { margin: 0 0 10px; font-size: 18px; line-height: 1.35; }
.dica-texto b { color: var(--energia); }
.dica-ok { width: 100%; font-size: .7rem; text-wrap: balance; }

.dica-x {
  position: absolute; top: 4px; right: 6px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  color: var(--texto-suave);
  background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.dica-x .ico { width: 14px; height: 14px; }
.dica-x:hover { color: var(--texto); background: rgba(255, 233, 214, .1); }
.dica-x:focus-visible { outline: 3px solid var(--energia); outline-offset: 2px; }

@keyframes dica-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 700px) {
  .dica { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 10px 12px 10px 8px; }
  .dica-orbi.orbi { width: 40px; }
  .dica-texto { font-size: 16px; margin-bottom: 8px; }
  .dica-titulo { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .dica { animation: none; }
}
