/* ==========================================================================
   Central do Criador: sistema visual.
   Tokens, base e componentes usados por todas as telas. Como usar: SISTEMA-VISUAL.md.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fontes/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fontes/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Superfícies, da mais funda para a mais alta */
  --fundo: #05070c;
  --sup-1: #0c1119;
  --sup-2: #121823;
  --sup-3: #1a2230;
  --campo: #080c13;
  --linha: rgba(255, 255, 255, 0.08);
  --linha-forte: rgba(255, 255, 255, 0.17);

  /* Texto */
  --texto: #f3f6fa;
  --suave: #aab5c6;
  --fraco: #8592a5;

  /* Marca */
  --menta: #2ee8b5;
  --ciano: #38d6f5;
  --violeta: #9b8cff;
  --ambar: #ffc766;
  --coral: #ff7f7f;
  --azul: #6ea8ff;
  --sobre-menta: #04201a;
  --degrade-marca: linear-gradient(120deg, #2ee8b5 0%, #38d6f5 58%, #8fa2ff 110%);

  /* Situações */
  --ok: #2ee8b5;
  --atencao: #ffc766;
  --perigo: #ff7f7f;
  --ok-fundo: rgba(46, 232, 181, 0.12);
  --atencao-fundo: rgba(255, 199, 102, 0.12);
  --perigo-fundo: rgba(255, 127, 127, 0.12);

  /* Tom da tela: toda ferramenta tem um (classes .tom-*) */
  --tom: #2ee8b5;
  --tom-2: #38d6f5;
  --tom-rgb: 46 232 181;

  /* Forma */
  --r-g: 24px;
  --r: 18px;
  --r-m: 14px;
  --r-p: 10px;
  --sombra: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --brilho-topo: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Tipos */
  --fonte: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fonte-titulo: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Movimento */
  --curva: cubic-bezier(0.2, 0.8, 0.2, 1);
  --curva-mola: cubic-bezier(0.34, 1.56, 0.64, 1);
  --mov-1: 140ms;
  --mov-2: 280ms;
  --mov-3: 560ms;

  /* Espaço */
  --seguro-topo: env(safe-area-inset-top, 0px);
  --seguro-base: env(safe-area-inset-bottom, 0px);
  --altura-barra: 66px;
  --largura-lateral: 264px;
}

.tom-menta { --tom: #2ee8b5; --tom-2: #38d6f5; --tom-rgb: 46 232 181; }
.tom-ciano { --tom: #38d6f5; --tom-2: #6ea8ff; --tom-rgb: 56 214 245; }
.tom-azul { --tom: #6ea8ff; --tom-2: #9b8cff; --tom-rgb: 110 168 255; }
.tom-violeta { --tom: #a899ff; --tom-2: #d79bff; --tom-rgb: 155 140 255; }
.tom-ambar { --tom: #ffc766; --tom-2: #ff9f6b; --tom-rgb: 255 199 102; }
.tom-coral { --tom: #ff8f8f; --tom-2: #ff8fc7; --tom-rgb: 255 127 127; }
.tom-rosa { --tom: #ff8fc7; --tom-2: #a899ff; --tom-rgb: 255 143 199; }

/* -------- Base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--fundo); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fundo);
  color: var(--texto);
  font: 400 16px/1.55 var(--fonte);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: anywhere;
}
/* Luz de fundo fixa. Sem animação: roda leve em qualquer celular. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90vmax 60vmax at 85% -15%, rgba(46, 232, 181, 0.13), transparent 62%),
    radial-gradient(80vmax 60vmax at -15% 12%, rgba(120, 110, 255, 0.12), transparent 62%),
    radial-gradient(70vmax 50vmax at 60% 115%, rgba(56, 214, 245, 0.07), transparent 65%),
    var(--fundo);
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, .titulo-display { font-family: var(--fonte-titulo); letter-spacing: -0.02em; }
h1 { font-size: 1.7rem; line-height: 1.12; font-weight: 700; }
h2 { font-size: 1.16rem; line-height: 1.25; font-weight: 650; }
h3 { font-size: 1rem; line-height: 1.3; font-weight: 650; }
a { color: var(--menta); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--menta); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: rgba(46, 232, 181, 0.3); }

/* Utilitários */
.suave { color: var(--suave); }
.fraco { color: var(--fraco); }
.mini { font-size: 0.82rem; line-height: 1.45; color: var(--suave); }
.centro { text-align: center; }
.quebra { white-space: pre-line; }
.erro { color: var(--perigo); font-size: 0.88rem; }
.fora-da-tela { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
.numeros { font-variant-numeric: tabular-nums; }
.degrade-texto { background: var(--degrade-marca); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sobrelinha { color: var(--tom); font: 700 0.72rem/1.3 var(--fonte); letter-spacing: 0.13em; text-transform: uppercase; }
.pilha { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pilha-curta { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.linha { display: flex; align-items: center; gap: 10px; min-width: 0; }
.linha-botoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.grade-2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade-cartoes { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.carregando { padding: 48px 20px; text-align: center; color: var(--suave); }

/* Ícone */
.icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icone-g { width: 26px; height: 26px; }
.icone-mini { width: 13px; height: 13px; margin-left: 3px; vertical-align: -2px; }

/* -------- Cartões -------- */
.cartao {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--linha);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--sup-2), var(--sup-1));
  box-shadow: var(--brilho-topo), var(--sombra);
}
.cartao > h1 + .suave, .cartao > h2 + .suave { margin-top: 6px; }
.cartao-toque { display: block; width: 100%; text-align: left; color: inherit; text-decoration: none; cursor: pointer; transition: transform var(--mov-1) var(--curva), border-color var(--mov-2); }
.cartao-toque:hover { border-color: var(--linha-forte); }
.cartao-toque:active { transform: scale(0.98); }
/* Cartão com luz do tom da tela. É o destaque de uma tela: use um por vez. */
.cartao-heroi {
  overflow: hidden;
  isolation: isolate;
  padding: 22px;
  border-radius: var(--r-g);
  border-color: rgb(var(--tom-rgb) / 0.28);
  background: linear-gradient(160deg, rgb(var(--tom-rgb) / 0.13), rgb(var(--tom-rgb) / 0.02) 46%, transparent 70%), linear-gradient(180deg, var(--sup-2), var(--sup-1));
  box-shadow: var(--brilho-topo), 0 26px 60px -34px rgb(var(--tom-rgb) / 0.55), var(--sombra);
}
.cartao-heroi::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -46%;
  right: -22%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--tom-rgb) / 0.3), transparent 68%);
  pointer-events: none;
}
/* Faixa colorida fina no topo, para cartões de ferramenta. */
.cartao-filete::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tom), var(--tom-2), transparent);
}

/* Azulejo de ícone */
.azulejo {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-m);
  color: var(--tom);
  border: 1px solid rgb(var(--tom-rgb) / 0.3);
  background: linear-gradient(145deg, rgb(var(--tom-rgb) / 0.22), rgb(var(--tom-rgb) / 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 20px -12px rgb(var(--tom-rgb) / 0.8);
}
.azulejo-p { width: 34px; height: 34px; border-radius: 11px; }
.azulejo-p .icone { width: 17px; height: 17px; }
.azulejo-g { width: 58px; height: 58px; border-radius: 18px; }
.azulejo-g .icone { width: 28px; height: 28px; }

/* Cabeçalho de tela */
.tela-topo { display: flex; gap: 14px; align-items: flex-start; }
.tela-topo h1 { margin-top: 2px; }
.tela-topo p { margin-top: 6px; color: var(--suave); font-size: 0.95rem; }

/* "Como funciona": três passos, para qualquer ferramenta */
.como-funciona { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; counter-reset: passo; }
.como-funciona li { counter-increment: passo; padding: 10px; border-radius: var(--r-m); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--linha); font-size: 0.78rem; line-height: 1.35; color: var(--suave); }
.como-funciona li::before { content: counter(passo); display: grid; place-items: center; width: 22px; height: 22px; margin-bottom: 6px; border-radius: 50%; background: rgb(var(--tom-rgb) / 0.18); color: var(--tom); font: 700 0.76rem var(--fonte-titulo); }

/* -------- Botões -------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px;
  border: 1px solid var(--linha-forte); border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.04);
  color: var(--texto); font-size: 0.93rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform var(--mov-1) var(--curva), background var(--mov-2), border-color var(--mov-2), box-shadow var(--mov-2);
}
.botao:hover { background: rgba(255, 255, 255, 0.08); }
.botao:active { transform: scale(0.97); }
.botao:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }
.botao-cheio {
  border-color: transparent;
  background: var(--degrade-marca);
  color: var(--sobre-menta);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 28px -12px rgba(46, 232, 181, 0.75);
}
.botao-cheio:hover { background: var(--degrade-marca); filter: brightness(1.08); }
.botao-contorno { border-color: rgb(var(--tom-rgb) / 0.55); color: var(--tom); background: rgb(var(--tom-rgb) / 0.06); }
.botao-contorno:hover { background: rgb(var(--tom-rgb) / 0.13); }
.botao-grande { min-height: 56px; padding: 14px 22px; border-radius: var(--r); font-size: 1.02rem; }
.botao-pequeno { min-height: 38px; padding: 6px 12px; border-radius: 11px; font-size: 0.84rem; }
.botao-largo { width: 100%; }
.botao-ativo { background: rgb(var(--tom-rgb) / 0.15); border-color: rgb(var(--tom-rgb) / 0.5); color: var(--tom); }
.botao-perigo { border-color: transparent; background: var(--perigo); color: #2a0606; font-weight: 700; }
.botao-perigo:hover { background: #ff9c9c; }
.botao-perigo-contorno { border-color: rgba(255, 127, 127, 0.5); color: var(--perigo); }
.botao-perigo-contorno:hover { background: var(--perigo-fundo); }
.botao-icone { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-m); color: var(--suave); cursor: pointer; text-decoration: none; transition: color var(--mov-2), background var(--mov-2); }
.botao-icone:hover { color: var(--texto); background: rgba(255, 255, 255, 0.06); }
.link { color: var(--menta); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* -------- Chips, selos e segmentos -------- */
.chip, .pilula {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 38px; padding: 6px 14px;
  border: 1px solid var(--linha-forte); border-radius: 999px;
  color: var(--suave); font-size: 0.86rem; font-weight: 550; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background var(--mov-2), color var(--mov-2), border-color var(--mov-2), transform var(--mov-1);
}
.chip:hover, .pilula:hover { color: var(--texto); }
.chip:active, .pilula:active { transform: scale(0.96); }
.chip.ativo, .pilula.ativa { background: var(--texto); border-color: var(--texto); color: #0a0e14; font-weight: 650; }
.chips, .pilulas { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-rolagem { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
.chips-rolagem::-webkit-scrollbar { display: none; }

.selo {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 5px; flex: none;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--linha);
  color: var(--suave); font-size: 0.74rem; font-weight: 650; line-height: 1.4; white-space: nowrap;
}
.selo .icone { width: 13px; height: 13px; stroke-width: 2.4; }
.selo-tom { background: rgb(var(--tom-rgb) / 0.13); border-color: rgb(var(--tom-rgb) / 0.28); color: var(--tom); }
.selo-menta, .selo-ok { background: var(--ok-fundo); border-color: rgba(46, 232, 181, 0.28); color: var(--ok); }
.selo-atencao { background: var(--atencao-fundo); border-color: rgba(255, 199, 102, 0.28); color: var(--atencao); }
.selo-bloqueia, .selo-perigo { background: var(--perigo-fundo); border-color: rgba(255, 127, 127, 0.28); color: var(--perigo); }

.segmento { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-m); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--linha); }
.segmento > button { flex: 1; min-height: 38px; padding: 6px 10px; border-radius: 10px; color: var(--suave); font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: background var(--mov-2), color var(--mov-2); }
.segmento > button[aria-pressed="true"] { background: var(--sup-3); color: var(--texto); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08); }

/* -------- Campos -------- */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > label { color: var(--suave); font-size: 0.83rem; font-weight: 500; }
input[type="text"], input[type="search"], input[type="url"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--campo); border: 1px solid var(--linha-forte); border-radius: var(--r-m);
  font-size: 16px; /* Evita o zoom automático no iPhone. */
  transition: border-color var(--mov-2), box-shadow var(--mov-2);
}
input:focus, select:focus, textarea:focus { border-color: var(--menta); outline: none; box-shadow: 0 0 0 3px rgba(46, 232, 181, 0.16); }
textarea { resize: vertical; line-height: 1.45; }
::placeholder { color: var(--fraco); }
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0;
  border: 1.6px solid var(--linha-forte); border-radius: 9px; background: var(--campo); cursor: pointer;
  display: inline-grid; place-content: center;
  transition: background var(--mov-1), border-color var(--mov-1), transform var(--mov-2) var(--curva-mola), box-shadow var(--mov-2);
}
input[type="checkbox"]::after {
  content: ""; width: 13px; height: 7px; margin-top: -3px;
  border-left: 2.8px solid var(--sobre-menta); border-bottom: 2.8px solid var(--sobre-menta);
  transform: rotate(-45deg) scale(0); transition: transform var(--mov-2) var(--curva-mola);
}
input[type="checkbox"]:checked { background: var(--degrade-marca); border-color: transparent; box-shadow: 0 0 16px rgba(46, 232, 181, 0.45); transform: scale(1.04); }
input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }

/* -------- Progresso -------- */
.barra { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.barra-cheia { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--tom), var(--tom-2)); box-shadow: 0 0 12px rgb(var(--tom-rgb) / 0.6); transition: width var(--mov-3) var(--curva); }

.anel { position: relative; display: inline-grid; place-items: center; flex: none; }
.anel > svg { display: block; transform: rotate(-90deg); }
.anel circle { fill: none; }
.anel .anel-trilho { stroke: rgba(255, 255, 255, 0.09); }
.anel .anel-valor { stroke-linecap: round; transition: stroke-dashoffset 900ms var(--curva); }
.anel-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }

.estatistica { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.estatistica strong { font: 700 1.5rem/1.1 var(--fonte-titulo); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.estatistica span { color: var(--suave); font-size: 0.76rem; line-height: 1.3; }

/* -------- Listas marcáveis -------- */
.lista-itens { display: flex; flex-direction: column; }
.item { border-bottom: 1px solid var(--linha); }
.item:last-child { border-bottom: 0; }
.item-linha { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.item-linha > label { flex: 1 1 calc(100% - 44px); min-width: 0; padding-top: 2px; cursor: pointer; font-size: 0.96rem; line-height: 1.4; transition: color var(--mov-2); }
.item.feito > .item-linha > label { color: var(--fraco); text-decoration: line-through; text-decoration-color: var(--linha-forte); }
.item-ajuda { flex-basis: 100%; padding-left: 38px; }
.item-ajuda > summary { display: inline-flex; align-items: center; gap: 5px; color: var(--tom); font-size: 0.8rem; font-weight: 600; cursor: pointer; list-style: none; min-height: 28px; }
.item-ajuda > summary::-webkit-details-marker { display: none; }
.item-ajuda > summary .icone { width: 14px; height: 14px; transition: transform var(--mov-2); }
.item-ajuda[open] > summary .icone { transform: rotate(90deg); }
.item-ajuda-corpo { padding: 2px 0 6px; font-size: 0.87rem; color: var(--suave); display: flex; flex-direction: column; gap: 4px; }

/* -------- Avisos -------- */
.aviso-regra { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--atencao-fundo); border: 1px solid rgba(255, 199, 102, 0.2); font-size: 0.9rem; }
.aviso-regra > .icone { color: var(--atencao); margin-top: 2px; }
.aviso-regra ul { padding-left: 16px; list-style: disc; margin: 4px 0; }
.nota { color: var(--suave); font-size: 0.84rem; text-align: center; padding: 4px 8px; }
.nota-dentro { text-align: left; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-p); background: rgba(255, 255, 255, 0.04); }
.vazio { padding: 28px 18px; text-align: center; color: var(--suave); border: 1px dashed var(--linha-forte); border-radius: var(--r); }
.aviso-flutuante {
  position: fixed; left: 50%; top: calc(10px + var(--seguro-topo)); z-index: 70; transform: translate(-50%, -16px);
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px);
  padding: 11px 16px; border-radius: var(--r-m); background: #eef2f7; color: #10161e; font-size: 0.9rem; font-weight: 550;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  opacity: 0; pointer-events: none; transition: opacity var(--mov-2), transform var(--mov-2) var(--curva);
}
.aviso-flutuante.visivel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.aviso-acao { padding: 4px; color: #066b53; font-weight: 750; cursor: pointer; }

/* -------- Caixas -------- */
.caixa { width: min(420px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--linha-forte); border-radius: var(--r-g); background: var(--sup-2); color: var(--texto); box-shadow: 0 40px 80px -20px #000; }
.caixa::backdrop { background: rgba(3, 5, 9, 0.74); }
.caixa h2 { margin-bottom: 8px; }
.caixa .linha-botoes { margin-top: 16px; }
/* Folha que sobe da base. */
.folha {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; max-height: 84dvh; margin: 0 auto;
  padding: 10px 16px calc(20px + var(--seguro-base));
  border: 1px solid var(--linha-forte); border-bottom: 0; border-radius: var(--r-g) var(--r-g) 0 0;
  background: var(--sup-2); color: var(--texto); overflow-y: auto;
}
.folha[open] { animation: folha-sobe var(--mov-2) var(--curva); }
.folha::backdrop { background: rgba(3, 5, 9, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.folha-alca { width: 40px; height: 4px; margin: 2px auto 14px; border-radius: 4px; background: var(--linha-forte); }

/* -------- Movimento -------- */
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes saltar { 0% { opacity: 0; transform: scale(0.7); } 70% { opacity: 1; transform: scale(1.06); } 100% { transform: none; } }
@keyframes folha-sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--tom-rgb) / 0.45); } 60% { box-shadow: 0 0 0 12px rgb(var(--tom-rgb) / 0); } }
@keyframes brilho-passa { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(240%) skewX(-18deg); } }
@keyframes particula { 0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); } 100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(0.4) rotate(220deg); } }
@keyframes girar { to { transform: rotate(360deg); } }
.entrar { animation: entrar var(--mov-2) var(--curva) both; }
.saltar { animation: saltar var(--mov-3) var(--curva) both; }
.pulsando { animation: pulso 2.2s ease-out infinite; }
/* Filhos entram um depois do outro. */
.cascata > * { animation: entrar 420ms var(--curva) both; }
.cascata > *:nth-child(2) { animation-delay: 60ms; }
.cascata > *:nth-child(3) { animation-delay: 120ms; }
.cascata > *:nth-child(4) { animation-delay: 180ms; }
.cascata > *:nth-child(5) { animation-delay: 240ms; }
.cascata > *:nth-child(6) { animation-delay: 300ms; }
.cascata > *:nth-child(n+7) { animation-delay: 340ms; }
/* Faixa de brilho que passa por cima de um elemento com position: relative. */
.reluzir { position: relative; overflow: hidden; }
.reluzir::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); animation: brilho-passa 3.4s var(--curva) 1s infinite; pointer-events: none; }
/* Partículas criadas por celebrar(). */
.particulas { position: fixed; z-index: 80; width: 0; height: 0; pointer-events: none; }
.particula { position: absolute; width: 7px; height: 7px; border-radius: 2px; animation: particula 760ms var(--curva) forwards; }
/* Esqueleto enquanto uma tela carrega. */
.esqueleto { border-radius: var(--r); min-height: 120px; background: linear-gradient(100deg, var(--sup-1) 30%, var(--sup-3) 50%, var(--sup-1) 70%); background-size: 240% 100%; animation: esqueleto 1.4s linear infinite; }
@keyframes esqueleto { from { background-position: 120% 0; } to { background-position: -120% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .particulas { display: none; }
}
@media (min-width: 720px) {
  h1 { font-size: 2rem; }
  .cartao { padding: 22px; }
  .cartao-heroi { padding: 28px; }
  .grade-cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
