/* ABYSSE PULSE — visual v3 (referência do cliente, 2026-11-28).
   Base da marca (preto, off-white, Archivo expandida + Inter, refrações de luz) +
   EXCEÇÕES SÓ DO APP aprovadas pelo cliente: vermelho como cor de destaque e cantos arredondados. */
:root {
  --abyss: #0A0A0B; --ink: #141416; --graphite: #232326; --stone: #5A5A5E;
  --ash: #8C8C90; --smoke: #C9C6BF; --bone: #EDEAE3;
  --rubi: #D42B3C;            /* destaque (só no app) */
  --rubi-escuro: #3A1015;
  --card: rgba(22, 22, 25, 0.78);
  --card-forte: rgba(26, 26, 30, 0.92);
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-small: 0.875rem; --fs-label: 0.75rem;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --r-card: 18px; --r-ctl: 14px; --r-pill: 999px;
  --line: 1px solid rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; min-height: 100dvh; background: var(--abyss); color: var(--bone);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.5; -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
svg.ic { width: 22px; height: 22px; display: block; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Fundo (refrações) ---------- */
.fundo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.veu { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,11,0) 0%, rgba(10,10,11,0.4) 45%, rgba(10,10,11,0.9) 100%); }
.kanji-v { writing-mode: vertical-rl; font-family: "Noto Sans JP", sans-serif; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.5em; color: var(--ash); }

.piloto-faixa {
  position: sticky; top: 0; z-index: 30; padding: 5px var(--s-4); padding-top: calc(5px + env(safe-area-inset-top));
  text-align: center; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--abyss); background: var(--bone);
}
.app { max-width: 560px; margin: 0 auto; padding: var(--s-4) 18px calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); outline: none;
  padding-top: calc(var(--s-4) + env(safe-area-inset-top)); } /* área segura do iPhone (relógio/bateria) quando aberto pela tela inicial */
.piloto-faixa:not([hidden]) ~ .app { padding-top: var(--s-4); } /* no piloto a faixa já ocupa a área segura */
.app--sem-abas { padding-bottom: var(--s-7); }

/* ---------- Tipografia ---------- */
.label { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); margin: 0; }
.disp { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; margin: 0; }
.h-tela { font-size: clamp(1.6rem, 7.5vw, 2.1rem); }
.h-sec { font-size: 0.9375rem; letter-spacing: 0.02em; }
.apoio { color: var(--ash); font-size: var(--fs-small); margin: var(--s-2) 0 0; }
.vazio { color: var(--ash); font-size: var(--fs-small); margin: 0; }
.vermelho { color: var(--rubi); }

/* ---------- Barra de topo das telas ---------- */
.barra-topo { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; margin-bottom: var(--s-4); }
.voltar { width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; border-radius: var(--r-pill); color: var(--bone); }
.voltar:hover { background: rgba(255,255,255,0.06); }
.barra-topo .disp { flex: 1; }
.barra-topo__extra { margin-left: auto; }

/* ---------- Cartões ---------- */
.card { background: var(--card); border: var(--line); border-radius: var(--r-card); padding: 18px; margin-top: var(--s-3); }
.card--forte { background: var(--card-forte); }
.card--link { display: block; text-decoration: none; transition: border-color 250ms var(--ease); }
.card--link:hover { border-color: rgba(255,255,255,0.2); }
.card__cab { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 54px; padding: 0 24px; border: 1px solid var(--bone); border-radius: var(--r-ctl);
  background: var(--bone); color: var(--abyss); text-decoration: none;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-color 250ms var(--ease), color 250ms var(--ease), transform 150ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:hover { background: #fff; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn--sec { background: rgba(255,255,255,0.03); color: var(--bone); border-color: rgba(255,255,255,0.22); }
.btn--sec:hover { background: rgba(255,255,255,0.08); }
.btn--perigo { background: transparent; color: var(--ash); border: 1px dashed var(--stone); }
.btn--perigo:hover { color: var(--bone); background: transparent; }
.btn--vermelho { background: var(--rubi); border-color: var(--rubi); color: #fff; }
.btn--vermelho:hover { background: #e2394a; }
.btn svg { width: 16px; height: 16px; }
.seta { transition: transform 300ms var(--ease); }
.btn:hover .seta { transform: translateX(4px); }
.link { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-small); color: var(--bone); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link--fraco { color: var(--ash); }
.pilha { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.redondo { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bone); color: var(--abyss); }
.redondo svg { width: 18px; height: 18px; }

/* ---------- Pílulas (abas internas, chips) ---------- */
.abas-int { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; background: rgba(255,255,255,0.04); border: var(--line); border-radius: var(--r-pill); }
.abas-int button { min-height: 38px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 500; color: var(--ash); }
.abas-int button[aria-pressed="true"] { background: var(--bone); color: var(--abyss); font-weight: 600; }
.abas-int--links a { min-height: 38px; display: grid; place-items: center; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 500; color: var(--ash); text-decoration: none; }
.abas-int--links a[aria-current="page"] { background: var(--bone); color: var(--abyss); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: var(--line); border-radius: var(--r-pill); background: rgba(255,255,255,0.03); font-size: var(--fs-label); color: var(--smoke); }
.chip svg { width: 13px; height: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Formulários ---------- */
.form { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.campo { display: grid; gap: var(--s-2); }
.campo > span { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }
.input, .select {
  width: 100%; min-height: 52px; padding: 0 var(--s-4); background: rgba(10,10,11,0.7);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-ctl); font-size: 1rem;
}
.input:focus, .select:focus { border-color: var(--bone); outline: none; }
.input--key { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; font-size: 1.125rem; }
.input--nome { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.0625rem; }
.input--nome::placeholder { font-family: var(--font-body); font-stretch: 100%; font-weight: 400; text-transform: none; color: var(--stone); }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--bone) 50%), linear-gradient(135deg, var(--bone) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; font-size: var(--fs-small); color: var(--smoke); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rubi); }
.erro { font-size: var(--fs-small); color: var(--bone); border: 1px dashed var(--rubi); border-radius: var(--r-ctl); padding: var(--s-3); margin: 0; }
.erro:empty { display: none; }
.linha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

/* ---------- Entrada ---------- */
.capa { position: relative; min-height: calc(100dvh - 120px); display: flex; flex-direction: column; }
.capa__kanji { position: absolute; top: 8px; right: 0; }
.capa__wordmark { width: 78%; height: auto; display: block; margin: var(--s-7) auto 0; }
.capa__core { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 0; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.6em; text-transform: uppercase; color: var(--smoke); padding-left: 0.6em; }
.capa__core::before, .capa__core::after { content: ""; width: 34px; height: 1px; background: var(--stone); }
.trava { border: 1px dashed rgba(212,43,60,0.55); }
/* logo = estrela da marca (2026-12-05, substitui o emblema antigo): se desenha quando a abertura sai */
.capa__logo { width: clamp(72px, 22vw, 104px); height: auto; display: block; margin: var(--s-7) auto 0; overflow: visible; }
.capa__logo path { fill: var(--bone); fill-opacity: 0; stroke: var(--bone); stroke-width: 0.35; stroke-dasharray: 1; stroke-dashoffset: 1; }
html.abriu .capa__logo path { animation: capa-traco 1.1s var(--ease) 0.15s forwards, capa-miolo 0.5s ease 1.1s forwards, capa-brilho 2.4s ease 1.45s; }
@keyframes capa-traco { to { stroke-dashoffset: 0; } }
@keyframes capa-miolo { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes capa-brilho { 0%, 100% { filter: none; } 40% { filter: drop-shadow(0 0 8px rgba(237,234,227,0.75)) drop-shadow(0 0 22px rgba(237,234,227,0.3)); } }
@media (prefers-reduced-motion: reduce) { .capa__logo path, html.abriu .capa__logo path { animation: none; fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; } }
.capa__lista { margin: auto 0 0; padding: var(--s-6) 0 var(--s-5); list-style: none; display: grid; gap: 10px; }
.capa__lista li { font-size: 0.875rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--smoke); }
.capa__lista li:last-child::after { content: ""; display: block; width: 28px; height: 1px; background: var(--bone); margin-top: var(--s-4); }
.capa__acoes { display: grid; gap: var(--s-2); justify-items: center; padding-bottom: var(--s-4); }
.capa__acoes .link { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--smoke); }

/* ---------- Início ---------- */
.home-topo { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: var(--s-2) 0 var(--s-4); }
.home-topo__wm { height: 16px; width: auto; display: block; }
.home-topo__ola { margin: var(--s-5) 0 0; font-size: 1.125rem; color: var(--smoke); }
.home-topo__nome { font-size: clamp(2.2rem, 11vw, 3rem); margin-top: 2px; }
.home-topo__kanji { position: absolute; right: 0; top: 4px; }
.xp { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: center; }
.chama { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 76px; }
.chama__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--rubi-escuro); color: var(--rubi); }
.chama__ic svg { width: 22px; height: 22px; }
/* Níveis do foguinho (sequência de dias) */
.chama__ic svg { transition: transform 400ms var(--ease); transform-origin: 50% 50%; }
.chama--0 .chama__ic { background: rgba(255,255,255,0.05); color: var(--stone); }
.chama--1 .chama__ic { color: #8E2A35; }
.chama--1 .chama__ic svg { transform: scale(0.8); }
.chama--2 .chama__ic { color: var(--rubi); }
.chama--2 .chama__ic svg { transform: scale(1.05); }
.chama--3 .chama__ic { background: radial-gradient(circle, rgba(212,43,60,0.45), var(--rubi-escuro) 70%); color: #F04A5B; }
.chama--3 .chama__ic svg { transform: scale(1.25); }
.chama--4 .chama__ic { background: radial-gradient(circle, rgba(240,74,91,0.6), var(--rubi-escuro) 72%); color: #FF7A88; outline: 1px solid rgba(212,43,60,0.6); outline-offset: 3px; }
.chama--4 .chama__ic svg { --s: 1.4; transform: scale(1.4); animation: tremular 1.6s ease-in-out infinite; }
.chama--5 .chama__ic { background: radial-gradient(circle, rgba(255,140,150,0.75), #5A1520 72%); color: #FFE3E7; outline: 1px solid var(--rubi); outline-offset: 3px; }
.chama--5 .chama__ic svg { --s: 1.55; transform: scale(1.55); animation: tremular 1.2s ease-in-out infinite; }
@keyframes tremular { 50% { transform: scale(calc(var(--s) * 1.06)) rotate(-3deg); } }
.chama strong { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.125rem; line-height: 1.1; margin-top: 4px; }
.chama span { font-size: 0.625rem; color: var(--ash); letter-spacing: 0.06em; }
.chama strong { white-space: nowrap; }
.chama strong small { font-family: var(--font-body); font-stretch: 100%; font-weight: 600; font-size: 0.75rem; }
.xp__linha { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.xp__linha strong { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 0.9375rem; white-space: nowrap; }
.xp__linha small { color: var(--ash); font-size: 0.6875rem; white-space: nowrap; }
.xp__linha strong small { font-family: var(--font-body); font-stretch: 100%; font-weight: 500; }
.barra { height: 6px; border-radius: var(--r-pill); background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 8px; }
.barra > i { display: block; height: 100%; border-radius: inherit; background: var(--bone); transition: width 800ms var(--ease); }
.barra--rubi > i { background: var(--rubi); }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: var(--s-3); }
.dia { display: grid; justify-items: center; gap: 4px; font-size: 0.5625rem; color: var(--ash); letter-spacing: 0.04em; }
.dia i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16); display: grid; place-items: center; }
.dia i svg { width: 11px; height: 11px; opacity: 0; }
.dia.on i { background: var(--rubi); border-color: var(--rubi); color: #fff; }
.dia.on i svg { opacity: 1; }
.dia.hoje { color: var(--bone); font-weight: 600; }
.plano { display: flex; align-items: center; gap: var(--s-3); }
.plano__txt { flex: 1; min-width: 0; }
.plano__nome { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 var(--s-3); }
.plano__nome .disp { font-size: 1.5rem; }
.plano__nome small { font-size: 0.75rem; color: var(--ash); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-3); }
.tile { background: var(--card); border: var(--line); border-radius: var(--r-card); padding: 14px 8px; display: grid; justify-items: center; text-align: center; gap: 2px; }
.tile svg { width: 18px; height: 18px; color: var(--smoke); margin-bottom: 6px; }
.tile strong { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.125rem; line-height: 1.1; }
.tile strong small { font-family: var(--font-body); font-weight: 500; font-size: 0.6875rem; margin-left: 2px; }
.tile span { font-size: 0.625rem; color: var(--ash); letter-spacing: 0.06em; }
.tile--rubi svg { color: var(--rubi); }
.meta-mini__linha { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.primeiro { border: 1px solid rgba(255,255,255,0.22); }
.primeiro__titulo { font-size: 1.6rem; margin-top: var(--s-2); }

/* ---------- Navegação de baixo ---------- */
.abas {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
  width: min(520px, calc(100% - 28px)); height: 60px; padding: 6px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  background: rgba(18, 18, 21, 0.94); border: var(--line); border-radius: var(--r-pill);
}
.abas[hidden] { display: none; }
.aba { display: grid; place-items: center; border-radius: var(--r-pill); color: var(--stone); text-decoration: none; transition: background-color 250ms var(--ease), color 250ms var(--ease); }
.aba[aria-current="page"] { background: rgba(255,255,255,0.1); color: var(--bone); }
.aba .ic { width: 22px; height: 22px; }

/* ---------- Detalhe do treino ---------- */
.plano-hero { margin: var(--s-2) 0 var(--s-4); }
.plano-hero .disp { font-size: clamp(2.2rem, 11vw, 2.9rem); margin-top: 4px; }
.lista-ex { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.ex-linha { display: grid; grid-template-columns: 76px 1fr auto; gap: var(--s-3); align-items: center; padding: 10px; background: var(--card); border: var(--line); border-radius: var(--r-card); text-align: left; width: 100%; }
.ex-linha__fig { display: block; aspect-ratio: 4 / 3; border-radius: 10px; background: rgba(10,10,11,0.8); overflow: hidden; }
.ex-linha__fig svg { width: 100%; height: 100%; display: block; }
.ex-linha strong { display: block; font-weight: 600; font-size: 0.9375rem; }
.ex-linha small { color: var(--ash); font-size: var(--fs-label); }
.circulo { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.3); display: grid; place-items: center; }
.circulo svg { width: 12px; height: 12px; opacity: 0; }
.circulo.on { background: var(--bone); border-color: var(--bone); color: var(--abyss); }
.circulo.on svg { opacity: 1; }
.circulo.parcial { border-color: var(--rubi); }

/* ---------- Sessão: um exercício por vez ---------- */
.sessao-topo { display: flex; align-items: center; gap: var(--s-3); }
.sessao-topo .label { flex: 1; }
.progresso-ex { display: grid; grid-auto-flow: column; gap: 4px; margin: var(--s-3) 0 var(--s-2); }
.progresso-ex i { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.12); }
.progresso-ex i.on { background: var(--bone); }
.progresso-ex i.atual { background: var(--rubi); }
.ex-titulo { font-size: clamp(1.7rem, 8.5vw, 2.3rem); margin-top: var(--s-3); }
.ex-ref { font-size: var(--fs-label); color: var(--ash); margin: 6px 0 0; }
.ex-fig { margin: var(--s-4) 0; aspect-ratio: 4 / 3; border-radius: var(--r-card); background: radial-gradient(ellipse at 50% 60%, rgba(212,43,60,0.16), transparent 65%), var(--card); border: var(--line); overflow: hidden; }
.ex-fig svg { width: 100%; height: 100%; display: block; }
.series { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.serie, .serie-cab { display: grid; grid-template-columns: 26px 1fr 1fr 44px 32px; gap: var(--s-2); align-items: center; }
.serie-cab { font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); text-align: center; }
.serie__n { font-size: var(--fs-small); color: var(--ash); font-weight: 600; text-align: center; }
.serie .input { min-height: 48px; text-align: center; padding: 0 6px; font-weight: 600; }
.serie.ok .input { border-color: rgba(255,255,255,0.06); color: var(--smoke); }
.feito { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,0.3); color: transparent; transition: all 250ms var(--ease); }
.feito svg { width: 16px; height: 16px; }
.feito[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--abyss); }
.icone-btn { width: 32px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--stone); }
.icone-btn:hover { color: var(--bone); }
.icone-btn svg { width: 18px; height: 18px; }
.mais { margin-top: var(--s-3); min-height: 48px; width: 100%; border: 1px solid rgba(255,255,255,0.22); border-radius: var(--r-ctl); font-size: var(--fs-small); font-weight: 600; color: var(--bone); }
.mais:hover { background: rgba(255,255,255,0.05); }
.nav-ex { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-4); }
.hist-ex { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.hist-ex li { padding: 12px 14px; background: var(--card); border: var(--line); border-radius: var(--r-ctl); font-size: var(--fs-small); }
.hist-ex strong { display: block; font-size: var(--fs-label); color: var(--ash); font-weight: 500; letter-spacing: 0.06em; margin-bottom: 2px; }
.recorde { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--rubi); color: #fff; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Timer de descanso */
.timer {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 25;
  width: min(520px, calc(100% - 28px)); display: flex; align-items: center; gap: var(--s-3); padding: 8px 8px 8px 20px;
  background: rgba(26, 26, 30, 0.97); border: var(--line); border-radius: var(--r-pill);
}
.timer[hidden] { display: none; }
.timer-on .app { padding-bottom: calc(var(--nav-h) + 110px + env(safe-area-inset-bottom)); }
.timer svg.ic { width: 20px; height: 20px; color: var(--smoke); }
.timer__tempo { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; flex: 1; font-variant-numeric: tabular-nums; }
.timer__tempo small { font-family: var(--font-body); font-weight: 500; font-size: 0.6875rem; color: var(--ash); letter-spacing: 0.1em; text-transform: uppercase; margin-left: 8px; }
.timer .redondo { width: 46px; height: 46px; }
.timer__mais { min-height: 36px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-label); color: var(--smoke); border: var(--line); }
.timer.fim .timer__tempo { color: var(--rubi); }

/* ---------- Seletor de exercícios ---------- */
.seletor { display: grid; gap: var(--s-3); }
.filtros { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.filtros::-webkit-scrollbar { display: none; }
.filtro { flex: none; min-height: 36px; padding: 0 14px; border: var(--line); border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 500; color: var(--smoke); background: rgba(255,255,255,0.03); }
.filtro[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--abyss); font-weight: 600; }
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
@media (min-width: 480px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ex-card { position: relative; display: grid; gap: 2px; align-content: start; text-align: left; padding: 0 0 12px; background: var(--card); border: var(--line); border-radius: var(--r-card); overflow: hidden; }
.ex-card.on { border-color: var(--rubi); box-shadow: inset 0 0 0 1px var(--rubi); }
.ex-card__fig { display: block; aspect-ratio: 4 / 3; background: rgba(10,10,11,0.7); margin-bottom: var(--s-2); }
.ex-card__fig svg { width: 100%; height: 100%; display: block; }
.ex-card__nome { padding: 0 12px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.ex-card__grupo { padding: 0 12px; font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.ex-card__n { position: absolute; top: 8px; right: 8px; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; background: var(--rubi); color: #fff; font-weight: 700; font-size: 0.75rem; border-radius: var(--r-pill); }
.criar-ex { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); }
.criar-ex .btn { width: auto; }

/* Ordem no montar treino */
.ordem { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.ordem li { display: grid; grid-template-columns: 60px 1fr auto; gap: var(--s-3); align-items: center; padding: 8px; background: rgba(10,10,11,0.6); border: var(--line); border-radius: var(--r-ctl); }
.ordem__fig { display: block; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--ink); overflow: hidden; }
.ordem__fig svg { width: 100%; height: 100%; display: block; }
.ordem__nome { font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.ordem__presc { display: flex; gap: 6px; margin-top: 6px; }
.ordem__presc select, .ordem__presc input { min-height: 34px; padding: 0 8px; border-radius: 10px; background: var(--ink); border: var(--line); font-size: 0.75rem; width: auto; }
.ordem__presc input { width: 70px; }
.ordem__acoes { display: flex; }
.ordem__acoes .icone-btn[disabled] { opacity: 0.25; }

/* Cartões de treino montado (aba Treinar) */
.ficha__figs { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 6px; align-items: center; margin: var(--s-3) 0 var(--s-4); }
.ficha__figs svg { width: 100%; height: auto; display: block; border-radius: 8px; background: rgba(10,10,11,0.7); }
.ficha__mais { font-size: var(--fs-label); font-weight: 600; color: var(--ash); padding-left: 4px; }

/* ---------- Evolução ---------- */
.grafico { margin-top: var(--s-3); position: relative; }
.grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.grafico .grade-l { stroke: rgba(255,255,255,0.06); stroke-width: 1; }
.grafico .linha { fill: none; stroke: var(--rubi); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafico .ponto { fill: var(--rubi); stroke: var(--abyss); stroke-width: 1.5; }
.grafico text { fill: var(--ash); font-size: 9px; font-family: var(--font-body); }
.grafico__badge { position: absolute; top: -6px; right: 0; padding: 6px 10px; border: 1px solid var(--rubi); border-radius: 10px; background: rgba(58,16,21,0.6); text-align: center; line-height: 1.1; }
.grafico__badge strong { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 0.9375rem; }
.grafico__badge small { font-size: 0.625rem; color: var(--smoke); }

/* ---------- Metas ---------- */
.meta { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-3); align-items: center; }
.meta__ic { width: 48px; height: 48px; display: grid; place-items: center; color: var(--smoke); }
.meta__ic svg { width: 30px; height: 30px; }
.meta__linha { display: flex; justify-content: space-between; gap: var(--s-2); align-items: baseline; }
.meta__linha strong { font-size: 0.9375rem; font-weight: 600; }
.meta__linha b { font-size: 0.875rem; }
.meta small { color: var(--ash); font-size: var(--fs-label); }
.meta__remover { justify-self: end; grid-column: 1 / -1; font-size: 0.6875rem; color: var(--stone); text-decoration: underline; text-underline-offset: 3px; min-height: 28px; }

/* ---------- Corpo ---------- */
.corpo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-2); align-items: center; margin-top: var(--s-4); }
.corpo > .corpo-svg, .corpo > .corpo-mapa { max-width: 230px; width: 100%; justify-self: center; }
.corpo-svg { width: 100%; height: auto; display: block; }
.cp-sil { fill: #141418; stroke: #3A3A42; stroke-width: 1.1; }
.cp-neutro path, .cp-neutro rect { stroke: rgba(255,255,255,0.07); stroke-width: 0.8; }
.cp-reg path, .cp-reg rect { stroke: rgba(255,255,255,0.09); stroke-width: 0.8; }
.cp-reg.on path, .cp-reg.on rect { stroke: #FF7A89; stroke-width: 0.7; }
.grupos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.grupos li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; border: var(--line); border-radius: var(--r-pill); background: var(--card); font-size: 0.8125rem; white-space: nowrap; }
.grupos small { white-space: nowrap; }
.grupos li .circulo { width: 20px; height: 20px; }
.grupos li.on .circulo { background: var(--rubi); border-color: var(--rubi); color: #fff; }
.grupos li.on .circulo svg { opacity: 1; }
.grupos small { margin-left: auto; color: var(--ash); font-size: 0.6875rem; }

/* ---------- Ranking ---------- */
.podio { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: var(--s-2); margin: var(--s-5) 0 var(--s-4); text-align: center; }
.avatar { position: relative; margin: 0 auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1.5px solid rgba(255,255,255,0.3); font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1rem; }
.avatar--1 { width: 84px; height: 84px; border-color: var(--bone); font-size: 1.25rem; }
.avatar__pos { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bone); color: var(--abyss); font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700; }
.podio strong { display: block; margin-top: 16px; font-size: var(--fs-small); }
.podio small { color: var(--ash); font-size: 0.6875rem; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rank li { display: grid; grid-template-columns: 24px 36px 1fr auto; gap: var(--s-3); align-items: center; padding: 10px 12px; border-radius: var(--r-ctl); font-size: var(--fs-small); }
.rank li.eu { background: rgba(212,43,60,0.16); border: 1px solid rgba(212,43,60,0.5); }
.rank .avatar { width: 36px; height: 36px; font-size: 0.75rem; border-width: 1px; }
.rank small { color: var(--ash); }
.previa { display: inline-flex; padding: 4px 10px; border: 1px dashed var(--stone); border-radius: var(--r-pill); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }

/* ---------- Perfil ---------- */
.perfil { display: flex; align-items: center; gap: var(--s-4); }
.menu { list-style: none; margin: 0; padding: 0; }
.menu a, .menu button { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 54px; padding: 0 4px; text-decoration: none; font-size: 0.9375rem; border-top: var(--line); text-align: left; }
.menu li:first-child a, .menu li:first-child button { border-top: 0; }
.menu svg.ic { width: 20px; height: 20px; color: var(--smoke); }
.menu .seta-d { margin-left: auto; color: var(--stone); }
.colecao { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-4); align-items: center; overflow: hidden; }
.colecao img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
.colecao .disp { font-size: 1.375rem; margin-top: 4px; }
.piloto { border: 1px dashed var(--stone); border-radius: var(--r-card); padding: var(--s-4); margin-top: var(--s-6); }
.piloto .keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-3); }
.piloto .keys button { padding: 6px 10px; min-height: 32px; border: var(--line); border-radius: var(--r-pill); font-size: 0.6875rem; color: var(--smoke); }
.piloto .keys button[disabled] { text-decoration: line-through; color: var(--stone); }

/* ---------- Cardio ---------- */
.cardio-semana { position: relative; overflow: hidden; padding: 22px 20px; }
.cardio-semana__estrela { position: absolute; right: -34px; top: -30px; width: 170px; height: 170px; color: rgba(237,234,227,0.07); }
.cardio-semana__v { font-size: clamp(2.4rem, 12vw, 3.2rem); margin: 10px 0 14px; position: relative; }
.cardio-semana__v small { font-family: var(--font-body); font-stretch: 100%; font-weight: 500; font-size: 1.125rem; text-transform: none; color: var(--smoke); }
.cardio-tipos { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.cardio-tipo { display: grid; justify-items: center; gap: 8px; padding: 16px 4px 12px; background: var(--card); border: var(--line); border-radius: var(--r-card); font-size: 0.75rem; font-weight: 500; color: var(--smoke); transition: border-color 250ms var(--ease); }
.cardio-tipo svg.ic { width: 26px; height: 26px; color: var(--bone); }
.cardio-tipo:hover { border-color: var(--rubi); }
.atvs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.atv { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--s-3); align-items: center; }
.atv__ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(212,43,60,0.12); color: var(--rubi); }
.atv strong { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.125rem; line-height: 1.2; }
.atv small { display: block; font-size: var(--fs-label); color: var(--ash); }
.anel { width: min(72vw, 260px); aspect-ratio: 1; margin: var(--s-5) auto; border-radius: 50%; display: grid; place-items: center; text-align: center;
  border: 2px solid rgba(212,43,60,0.55); background: radial-gradient(circle, rgba(212,43,60,0.14) 0%, rgba(10,10,11,0) 70%); }
.anel.on { border-color: var(--rubi); animation: pulsar 2.4s ease-in-out infinite; }
@keyframes pulsar { 50% { border-color: rgba(212,43,60,0.45); } }
.anel__tempo { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(2rem, 10vw, 2.6rem); margin: 0 0 6px; }
.cardio-fim { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 2rem; margin: 0; }
.cardio-fim small { font-family: var(--font-body); font-stretch: 100%; font-weight: 500; font-size: 0.875rem; color: var(--ash); text-transform: none; margin-left: 6px; }
.menu button[disabled] { cursor: default; color: var(--bone); }

/* ---------- Amigos ---------- */
.amigo-eu { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.amigo-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--s-3); min-height: 52px; }
.amigo-linha strong { min-width: 0; overflow-wrap: anywhere; }
.amigo-linha .avatar { width: 40px; height: 40px; font-size: 0.75rem; border-width: 1px; margin: 0; flex: none; }
.amigo-linha strong { font-size: 0.9375rem; }
.amigo-linha small { display: block; font-size: var(--fs-label); color: var(--ash); }
.amigo-acoes { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.amigo-acoes .btn { width: auto; min-height: 38px; padding: 0 14px; font-size: 0.6875rem; }
.amigo-linha--btn { width: 100%; padding: 6px 0; text-align: left; flex-wrap: nowrap; }
.amigo + .amigo { border-top: var(--line); }
.amigo-seq { display: inline-flex; align-items: center; gap: 4px; color: var(--stone); font-size: var(--fs-small); }
.amigo-seq svg.ic { width: 16px; height: 16px; }
.amigo-seq.on { color: var(--rubi); }
.amigo-seq b { color: var(--bone); font-weight: 600; }
.amigo-detalhe { padding: 4px 0 12px; display: grid; gap: 8px; justify-items: start; }
.amigo-detalhe .tiles { width: 100%; }
.compartilhado { padding: 14px 0; border-top: var(--line); }
.compartilhado:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- Resgatar ---------- */
.resgate-ok { text-align: center; border-color: rgba(212,43,60,0.6); background: radial-gradient(ellipse at 50% 0%, rgba(212,43,60,0.2), transparent 70%), var(--card-forte); }
.resgate-ok__ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--rubi); color: #fff; }
.resgate-ok__ic svg.ic { width: 26px; height: 26px; }
.resgate-ok__v { font-size: 1.6rem; margin-top: 6px; }

/* ---------- Ranks ---------- */
.rank-estrela { display: block; flex: none; overflow: visible; }
.rank-estrela.bloq { opacity: 0.22; filter: grayscale(1); }
.xp__rank { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; text-decoration: none; }
.xp__rank span { display: grid; line-height: 1.1; }
.xp__rank small { font-size: 0.5625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }
.xp__rank b { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.04em; }
.rank-linha { display: inline-flex; align-items: center; gap: 4px; }
.rank-card, .rank-item { display: flex; align-items: center; gap: var(--s-4); }
.rank-card__txt { flex: 1; min-width: 0; }
.rank-card__nome { font-size: 1.6rem; margin-top: 2px; }
.rank-item__nome { font-size: 1.25rem; margin-top: 2px; }
.rank-item > div { flex: 1; min-width: 0; }
.rank-item__xp { font-size: var(--fs-label); color: var(--ash); white-space: nowrap; }
.rank-item.bloq .disp, .rank-item.bloq .apoio { opacity: 0.45; }
.rank-item.atual { border-color: rgba(255,255,255,0.35); }
.rank-card--6 .rank-card__nome, .rank-item.rank-card--6 .rank-item__nome { color: #E23B4D; }
.evolucao-simbolo__linha { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin: var(--s-3) 0; color: var(--stone); }

/* ---------- Conquistas ---------- */
.conqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.conq { display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; min-height: 92px; padding: 12px 6px; border: var(--line); border-radius: var(--r-ctl); background: rgba(10,10,11,0.6); }
.conq svg.ic { width: 24px; height: 24px; color: var(--stone); }
.conq strong { font-size: 0.75rem; font-weight: 600; color: var(--ash); line-height: 1.2; }
.conq small { font-size: 0.625rem; color: var(--stone); }
.conq.ok { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); }
.conq.ok svg.ic { color: var(--bone); }
.conq.ok strong { color: var(--bone); }
.conq-lista { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.conq-lista li { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s-3); align-items: center; padding: 12px 14px; background: var(--card); border: var(--line); border-radius: var(--r-card); }
.conq-lista__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.04); color: var(--stone); }
.conq-lista li.ok .conq-lista__ic { color: var(--bone); background: rgba(255,255,255,0.08); }
.conq-lista strong { display: block; font-size: 0.9375rem; }
.conq-lista small { display: block; color: var(--ash); font-size: var(--fs-label); }
.conq-lista li:not(.ok) strong { color: var(--smoke); }
.conq-lista__v { font-size: var(--fs-label); color: var(--ash); }
.conq-lista__v svg.ic { width: 18px; height: 18px; color: var(--bone); }

/* ---------- Aviso ---------- */
.aviso {
  position: fixed; left: 50%; top: calc(40px + env(safe-area-inset-top)); z-index: 40; transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  width: min(520px, calc(100% - 28px)); padding: 12px 16px; border-radius: var(--r-ctl); background: var(--bone); color: var(--abyss);
  font-size: var(--fs-small); font-weight: 600; text-align: center; transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.aviso.on { opacity: 1; transform: translate(-50%, 0); }
.aviso.rubi { background: var(--rubi); color: #fff; }

.entrar-tela { animation: surgir 550ms var(--ease) both; }
@keyframes surgir { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* Ranking: botão ⋯ do topo abre 'Como funciona' + opções do apelido */
.ic-topo { width: 44px; height: 44px; margin-right: -8px; display: grid; place-items: center; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--bone); cursor: pointer; }
.ic-topo svg { width: 24px; height: 24px; }
.ic-topo[aria-expanded="true"] { background: rgba(255,255,255,0.08); }
.painel-ranking { margin: calc(-1 * var(--s-2)) 0 var(--s-4); text-align: center; }
.painel-ranking .apoio { margin: 0; }
.painel-ranking__links { display: flex; justify-content: center; gap: var(--s-5); }
.painel-ranking__links .link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: var(--fs-small); }

/* Convidar */
.convite { text-align: center; }
.convite__n { font-size: 3.4rem; line-height: 1; margin-top: 8px; }
.convite__n span { font-size: 1.4rem; color: var(--ash); }
.convite-cod { margin: 0 0 12px; padding: 16px; border: 1px dashed rgba(237,234,227,0.35); border-radius: var(--r-control, 14px); }
.convite-cod code { font: 600 1.15rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: 0.06em; word-break: break-all; }
/* ---------- Abertura (estrela → feixe → ABYSSE → PULSE). Tempos do protótipo × 0,8 ---------- */
.ab { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none; --ta: 0.8; }
.abrindo #app, .abrindo #abas, .abrindo .piloto-faixa, .abrindo #timer { opacity: 0; }
.abriu #app, .abriu #abas { animation: ab-aparece calc(0.6s) ease both; }
.abrindo .fundo { animation: ab-aparece calc(0.9s * 0.8) ease both; }
.ab__marca { position: relative; width: min(78vw, 420px); display: grid; justify-items: center; transform: translateY(-4vh); }
.ab__wm-caixa { position: relative; width: 100%; }
.ab__estrela { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; color: var(--bone);
  filter: drop-shadow(0 0 6px rgba(237,234,227,0.9)) drop-shadow(0 0 22px rgba(237,234,227,0.45)); opacity: 0; transform: scale(0) rotate(-45deg); }
.ab__estrela svg { width: 100%; height: 100%; display: block; }
.ab__halo { position: absolute; top: 50%; left: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(237,234,227,0.22), rgba(237,234,227,0.06) 40%, transparent 70%); opacity: 0; transform: scale(0.3); }
.ab__feixe { position: absolute; top: 50%; left: 50%; width: 120%; height: 2px; margin: -1px 0 0 -60%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(237,234,227,0.6) 20%, #fff 50%, rgba(237,234,227,0.6) 80%, transparent);
  box-shadow: 0 0 12px rgba(237,234,227,0.8), 0 0 40px rgba(237,234,227,0.35); opacity: 0; transform: scaleX(0); }
.ab__wm { width: 100%; height: auto; display: block; opacity: 0; filter: blur(10px) brightness(2.2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 0% 100%; mask-size: 0% 100%; }
.ab__core-faixa { position: relative; width: 100%; height: 44px; margin-top: 16px; display: grid; place-items: center; }
.ab__refr { position: absolute; left: -8%; top: 50%; width: 116%; height: 30px; margin-top: -15px; overflow: visible; }
.ab__refr path { fill: none; stroke: url(#abGradRefr); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 60 600; stroke-dashoffset: 60; opacity: 0;
  filter: drop-shadow(0 0 4px rgba(237,234,227,0.8)); }
.ab__core { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.6em;
  text-transform: uppercase; color: var(--smoke); padding-left: 0.6em; }
.ab__core::before, .ab__core::after { content: ""; width: 34px; height: 1px; background: var(--stone); transform: scaleX(0); }
.ab__core::before { transform-origin: right; } .ab__core::after { transform-origin: left; }
.ab__core span { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(2px); }

.ab--rodando .ab__halo    { animation: ab-halo calc(1.6s * var(--ta)) var(--ease) calc(0.45s * var(--ta)) forwards; }
.ab--rodando .ab__estrela { animation: ab-estrela calc(1.35s * var(--ta)) var(--ease) calc(0.45s * var(--ta)) forwards; }
.ab--rodando .ab__feixe   { animation: ab-feixe calc(1.0s * var(--ta)) var(--ease) calc(1.2s * var(--ta)) forwards; }
.ab--rodando .ab__wm      { animation: ab-revela calc(0.95s * var(--ta)) var(--ease) calc(1.38s * var(--ta)) forwards; }
.ab--rodando .ab__refr path { animation: ab-corre calc(1.15s * var(--ta)) cubic-bezier(0.45, 0, 0.2, 1) calc(2.05s * var(--ta)) forwards; }
.ab--rodando .ab__core::before, .ab--rodando .ab__core::after { animation: ab-linha calc(0.7s * var(--ta)) var(--ease) calc(2.55s * var(--ta)) forwards; }
.ab--rodando .ab__core span { animation: ab-letra calc(0.6s * var(--ta)) var(--ease) forwards; }
.ab--rodando .ab__core span:nth-child(1) { animation-delay: calc(2.22s * var(--ta)); }
.ab--rodando .ab__core span:nth-child(2) { animation-delay: calc(2.34s * var(--ta)); }
.ab--rodando .ab__core span:nth-child(3) { animation-delay: calc(2.46s * var(--ta)); }
.ab--rodando .ab__core span:nth-child(4) { animation-delay: calc(2.58s * var(--ta)); }
.ab--rodando .ab__core span:nth-child(5) { animation-delay: calc(2.70s * var(--ta)); } /* PULSE = 5 letras (2026-12-05) */
.ab--sai { animation: ab-sai 0.55s var(--ease) forwards; }

@keyframes ab-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes ab-halo { 0% { opacity: 0; transform: scale(0.3); } 45% { opacity: 1; transform: scale(1); } 75% { opacity: 0.8; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ab-estrela {
  0%   { opacity: 0; transform: scale(0) rotate(-45deg); }
  35%  { opacity: 1; transform: scale(1) rotate(0deg); }
  55%  { opacity: 1; transform: scale(0.88) rotate(0deg); }
  72%  { opacity: 1; transform: scale(1.7, 0.5) rotate(0deg); filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 40px rgba(237,234,227,0.8)) brightness(1.6); }
  100% { opacity: 0; transform: scale(6, 0.04) rotate(0deg); }
}
@keyframes ab-feixe { 0% { opacity: 0; transform: scaleX(0); } 30% { opacity: 1; transform: scaleX(0.55); } 60% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.08) scaleY(0.5); } }
@keyframes ab-revela {
  0%   { opacity: 1; -webkit-mask-size: 0% 100%; mask-size: 0% 100%; filter: blur(10px) brightness(2.2); }
  60%  { opacity: 1; -webkit-mask-size: 150% 100%; mask-size: 150% 100%; filter: blur(2px) brightness(1.3); }
  100% { opacity: 1; -webkit-mask-size: 200% 100%; mask-size: 200% 100%; filter: blur(0) brightness(1); }
}
@keyframes ab-corre { 0% { opacity: 0; stroke-dashoffset: 60; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -560; } }
@keyframes ab-letra { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes ab-linha { to { transform: scaleX(1); } }
@keyframes ab-sai { to { opacity: 0; transform: scale(1.04); filter: blur(4px); } }

/* Reduzir movimento: só um fade curto do logo pronto */
@media (prefers-reduced-motion: reduce) {
  .ab--rodando .ab__estrela, .ab--rodando .ab__halo, .ab--rodando .ab__feixe, .ab--rodando .ab__refr path { animation: none; }
  .ab--rodando .ab__wm { animation: ab-aparece 0.3s ease forwards; -webkit-mask-image: none; mask-image: none; filter: none; }
  .ab--rodando .ab__core span, .ab--rodando .ab__core::before, .ab--rodando .ab__core::after { animation: ab-aparece 0.3s ease 0.1s forwards; filter: none; transform: none; }
  .ab--sai { animation: ab-aparece 0.3s ease reverse forwards; }
}
/* ---------- Ranking no Início ---------- */
.rk-home { --rk: #D42B3C; --rkrgb: 212,43,60; display: flex; align-items: center; gap: 14px; border-color: rgba(var(--rkrgb),0.32);
  background: radial-gradient(ellipse at 100% 0%, rgba(var(--rkrgb),0.17), transparent 60%), var(--card); }
.rk-home__txt { flex: 1; min-width: 0; }
.rk-home .label { display: flex; align-items: center; gap: 6px; }
.rk-home .label svg.ic { width: 14px; height: 14px; color: var(--rk); }
.rk-home__pos { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; }
.rk-home__pos .disp { font-size: 2.4rem; line-height: 1; }
.rk-home__pos small { color: var(--ash); font-size: 0.8125rem; }
.rk-home__linha { display: block; margin: 0; }
.rk-home__linha b { color: var(--bone); font-weight: 600; }
.rk-home__chamada { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.25rem; line-height: 1.1; margin: 8px 0 4px; }
.rk-home__top { display: flex; flex: none; }
.rk-home__av { position: relative; width: 38px; height: 38px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); border: 1.5px solid rgba(255,255,255,0.28); font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 0.6875rem; }
.rk-home__av:first-child { margin-left: 0; }
.rk-home__av.eu { border-color: var(--rk); box-shadow: 0 0 10px rgba(var(--rkrgb),0.45); }
.rk-home__av i { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bone); color: var(--abyss); font: 700 0.5625rem/1 var(--font-body); font-style: normal; }
/* ---------- Mapa do corpo v4 (imagem do cliente + máscaras por grupo) ---------- */
.corpo-mapa { position: relative; width: 100%; aspect-ratio: 412 / 730; user-select: none; -webkit-user-select: none; }
.corpo-mapa > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.corpo-mapa .cp-brilho { position: absolute; inset: 0; pointer-events: none; }
.corpo-mapa .cp-g { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; pointer-events: none; }
.corpo-mapa .cp-cor { mix-blend-mode: color; }
.corpo-mapa .cp-luz { mix-blend-mode: soft-light; background: linear-gradient(#fff, #000); }
.corpo-legenda { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; font-size: 0.6875rem; color: var(--ash); }
.corpo-legenda i { width: 110px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #5A1820, #FF4A5C); }/* Tela Corpo v4: corpo grande em cima, lista de grupos em 2 colunas embaixo */
.corpo:has(> .corpo-mapa) { grid-template-columns: 1fr; gap: var(--s-4); }
.corpo > .corpo-mapa { max-width: 300px; }
.corpo:has(> .corpo-mapa) .grupos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.corpo:has(> .corpo-mapa) .grupos li { margin: 0; }
/* ---------- Idade, termos e privacidade (2026-12-01) ---------- */
.restrito { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: 72px 8px 24px; }
.restrito--conta { padding-top: 40px; }
.restrito__estrela { width: 22px; height: 22px; color: var(--bone); opacity: .9; }
.restrito .h-tela { margin-top: var(--s-2); }
.restrito .apoio { max-width: 34ch; margin: 0 0 var(--s-3); }
.check--destaque { padding: 14px; border: var(--line); border-radius: var(--r-ctl); background: rgba(255,255,255,0.03); }
.check--destaque strong { color: var(--bone); }
.pote { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.input--area { min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; font: inherit; width: 100%; }
select.input { appearance: none; -webkit-appearance: none; }
.consents { list-style: none; margin: 0; padding: 0; }
.consents .consent { display: grid; gap: 4px; padding: 14px 2px; border-top: var(--line); }
.consents .consent:first-child { border-top: 0; padding-top: 2px; }
.consents .consent .apoio { margin: 0; }
.consents .consent .link { justify-self: start; }
.aviso-email { border-color: rgba(237,234,227,0.22); }
.amigo-detalhe__acoes { display: flex; flex-wrap: wrap; gap: 4px 18px; }
