:root {
  --bg: #F5F0E8;
  --card: #FFFDF9;
  --ink: #1A1714;
  --ink2: #5E574F;
  --ink3: #9A9188;
  --linha: #E8E0D4;
  --brasa: #E8572A;
  --fase: #E9A23B;
  --fase-fundo: #FBEFD9;
  --raio: 24px;
  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --mola: cubic-bezier(.2, .9, .25, 1.15);
  --suave: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.45;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.ic { width: 22px; height: 22px; flex: none; }
h1, h2, h3, p { margin: 0; }

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }
.tela { padding: calc(14px + env(safe-area-inset-top)) 16px calc(120px + env(safe-area-inset-bottom)); animation: entra .45s var(--suave) both; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }

/* ---------- topo ---------- */
.topo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.marca { display: flex; align-items: center; gap: 9px; margin-right: auto; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.marca img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; }
.marca small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink3); letter-spacing: 0; line-height: 1.1; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--linha); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.chip .ic { width: 19px; height: 19px; }
.chip.fogo { color: var(--brasa); }
.chip.fogo.apagado { color: var(--ink3); }
.chip.fogo:not(.apagado) .ic { fill: var(--brasa); fill-opacity: .18; animation: tremula 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes tremula { 50% { transform: scale(1.08) rotate(-3deg); } }
.av { border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; flex: none; object-fit: cover; background: #fff; letter-spacing: -.02em; }
.btn-av { border-radius: 50%; padding: 2px; border: 1.5px solid var(--linha); display: grid; }

/* ---------- faixa dos 7 dias ---------- */
.trilha-mini { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--linha); border-radius: 18px; margin-bottom: 14px; }
.trilha-mini b { font-size: 15px; white-space: nowrap; }
.trilha-mini span { color: var(--ink3); font-size: 13.5px; display: block; font-weight: 500; }
.dias { display: flex; gap: 5px; margin-left: auto; }
.dias i { width: 14px; height: 22px; border-radius: 5px; background: var(--linha); display: block; position: relative; }
.dias i.feito { background: var(--brasa); }
.dias i.hoje { background: var(--ink); animation: pulsa 1.6s ease-in-out infinite; }
.dias i.hoje.feito { background: var(--brasa); }
.dias i.perdido { background: repeating-linear-gradient(-45deg, var(--linha) 0 3px, #f3ece2 3px 6px); }
@keyframes pulsa { 50% { opacity: .55; } }

/* ---------- céu (área do cronômetro) ---------- */
.ceu {
  position: relative; border-radius: 34px; overflow: hidden; isolation: isolate;
  background: var(--fase-fundo); padding: 22px 18px 22px; transition: background 1.2s ease;
}
.ceu::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.75), transparent 60%); }
.blob { position: absolute; z-index: -2; border-radius: 50%; filter: blur(38px); background: var(--fase); opacity: .32; transition: background 1.2s ease; }
.blob.b1 { width: 220px; height: 220px; left: -60px; top: 40px; animation: deriva 14s ease-in-out infinite; }
.blob.b2 { width: 180px; height: 180px; right: -50px; top: 180px; animation: deriva 17s ease-in-out infinite reverse; opacity: .22; }
.blob.b3 { width: 140px; height: 140px; left: 40%; bottom: -60px; animation: deriva 11s ease-in-out infinite; opacity: .18; }
@keyframes deriva { 33% { transform: translate(40px, -30px) scale(1.12); } 66% { transform: translate(-20px, 25px) scale(.92); } }

.ceu-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.etiqueta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink2); }
.etiqueta .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--fase); box-shadow: 0 0 0 0 var(--fase); animation: farol 1.8s ease-out infinite; }
@keyframes farol { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fase) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.btn-mini { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; color: var(--ink2); backdrop-filter: blur(8px); }
.btn-mini .ic { width: 16px; height: 16px; }

/* mostrador */
.dial { position: relative; width: min(80vw, 316px); aspect-ratio: 1; margin: 6px auto 0; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial .trilho { fill: none; stroke: rgba(26,23,20,.07); stroke-width: 18; }
.dial .seg { fill: none; stroke-width: 18; opacity: .28; }
.dial .prog { fill: none; stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--fase) 45%, transparent)); }
.dial .marco { transition: transform .4s var(--mola); }
.dial .marco circle { stroke: #fff; stroke-width: 2.5; }
.dial .marco.passou circle { fill: var(--ink); }
.dial .cabeca { filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }
.dial .cabeca .halo { fill: var(--fase); opacity: .35; transform-box: fill-box; transform-origin: center; animation: halo 2s ease-out infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
.dial-centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial-centro .rot { font-size: 13.5px; color: var(--ink2); font-weight: 600; }
.relogio { font-size: clamp(44px, 13.5vw, 58px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 6px 0 8px; display: flex; justify-content: center; font-variant-numeric: tabular-nums; }
.relogio .sep { width: .3em; text-align: center; opacity: .35; transform: translateY(-.04em); }
.dig { display: inline-block; height: 1em; width: .6em; overflow: hidden; position: relative; }
.dig .col { display: flex; flex-direction: column; transition: transform .7s var(--mola); }
.dig .col span { height: 1em; display: grid; place-items: center; }
.dial-centro .falta { font-size: 14.5px; color: var(--ink2); font-weight: 500; }
.dial-centro .falta b { color: var(--ink); }
.meta-ok { display: inline-flex; align-items: center; gap: 5px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; padding: 5px 11px; border-radius: 99px; margin: 0 auto; animation: pop .6s var(--mola); }
.meta-ok .ic { width: 15px; height: 15px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.ceu-rodape { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hora-box { background: rgba(255,255,255,.62); border-radius: 18px; padding: 10px 14px; backdrop-filter: blur(10px); }
.hora-box span { display: block; font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.hora-box b { font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px; margin-top: 14px; }
.card-tit { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-tit h3 { font-size: 18px; letter-spacing: -.02em; font-weight: 700; }
.card-tit small { color: var(--ink3); font-size: 13.5px; font-weight: 500; }
.sobre { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink3); font-weight: 700; }

/* fase agora */
.agora { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; }
.agora .il { width: 104px; height: 104px; background: var(--fase-fundo); border-radius: 26px; padding: 8px; transition: background 1s; --c: var(--fase); }
.agora h2 { font-size: 25px; line-height: 1.08; margin: 3px 0 0; letter-spacing: -.03em; font-weight: 700; }
.agora .curto { color: var(--ink2); font-size: 15px; margin-top: 4px; }
.texto-fase { margin-top: 14px; color: var(--ink2); font-size: 16px; }
.sente { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.sente span { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--fase-fundo); color: color-mix(in srgb, var(--fase) 75%, #000); }
.dica { display: grid; grid-template-columns: 42px 1fr; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--linha); }
.dica img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.dica p { font-size: 15.5px; }
.dica b { display: block; font-size: 13px; color: var(--ink3); font-weight: 600; margin-bottom: 2px; }
.proxima { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.proxima .barra { flex: 1; }
.proxima small { color: var(--ink3); font-size: 13px; font-weight: 600; display: block; }
.proxima b { font-size: 15.5px; }
.barra-fina { height: 6px; border-radius: 9px; background: var(--linha); margin-top: 7px; overflow: hidden; }
.barra-fina i { display: block; height: 100%; background: var(--fase); border-radius: 9px; transition: width 1s linear; }

/* curva de fome */
.curva svg { width: 100%; height: auto; display: block; overflow: visible; }
.curva .eixo { font-size: 10.5px; fill: var(--ink3); font-weight: 600; }
.curva .linha-fome { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.curva .agora-pt { fill: var(--fase); stroke: #fff; stroke-width: 3; }
.curva .agora-pt-halo { fill: var(--fase); opacity: .25; transform-box: fill-box; transform-origin: center; animation: halo 2s ease-out infinite; }
.leitura { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.leitura b { font-size: 22px; letter-spacing: -.02em; }
.leitura span { color: var(--ink2); font-size: 15px; }

/* check-in */
.humores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.humor { height: 52px; border-radius: 16px; border: 1.5px solid var(--linha); background: var(--card); font-weight: 600; font-size: 15.5px; transition: transform .2s var(--mola), border-color .2s, background .2s; }
.humor:active { transform: scale(.95); }
.humor.marcado { border-color: var(--ink); background: var(--ink); color: #fff; }
.resposta { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--fase-fundo); font-size: 15.5px; animation: entra .4s var(--suave); }

.copos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.copo { aspect-ratio: .72; border-radius: 6px 6px 10px 10px; border: 2px solid #9BC9EC; position: relative; overflow: hidden; background: #fff; transition: transform .2s var(--mola); }
.copo:active { transform: scale(.9); }
.copo i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#5BB0EA, #2D8FD5); transition: height .7s var(--mola); }
.copo i::before { content: ''; position: absolute; left: -50%; top: -5px; width: 200%; height: 10px; background: radial-gradient(circle at 25% 100%, transparent 5px, #5BB0EA 5.5px) 0 0 / 12px 10px repeat-x; animation: mare 2s linear infinite; }
.copo.cheio i { height: 88%; }
.copo:not(.cheio) i::before { display: none; }
@keyframes mare { to { transform: translateX(12px); } }

/* linha do tempo */
.tempo { position: relative; margin: 4px 0 0; padding: 0; list-style: none; }
.tempo li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; position: relative; }
.tempo li::before { content: ''; position: absolute; left: 16px; top: 38px; bottom: -10px; width: 2px; background: var(--linha); }
.tempo li:last-child::before { display: none; }
.tempo li.feita::before { background: var(--ink); }
.tempo .no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--linha); color: var(--ink3); position: relative; z-index: 1; }
.tempo .no .ic { width: 17px; height: 17px; }
.tempo li.feita .no { background: var(--ink); border-color: var(--ink); color: #fff; }
.tempo li.atual .no { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 20%, transparent); }
.tempo li.atual .no::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c); animation: halo 2s ease-out infinite; }
.tempo b { font-size: 16px; display: block; line-height: 1.25; }
.tempo p { font-size: 14px; color: var(--ink2); }
.tempo .h { font-size: 13.5px; font-weight: 700; color: var(--ink3); white-space: nowrap; padding-top: 2px; font-variant-numeric: tabular-nums; }
.tempo li.atual .h { color: var(--c); }
.tempo li.futura b { color: var(--ink2); }

/* botões */
.btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 60px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.01em; transition: transform .18s var(--mola), opacity .2s; position: relative; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.claro { background: var(--card); color: var(--ink); border: 1.5px solid var(--linha); }
.btn.perigo { background: transparent; color: #B4372E; border: 1.5px solid #EBC9C3; }
.btn.brasa { background: var(--brasa); }
.btn.fino { height: 50px; font-size: 16px; border-radius: 16px; }
.btn .ic { width: 20px; height: 20px; }
.btn.brilha::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-100%); animation: brilho 3.2s ease-in-out infinite 1s; }
@keyframes brilho { 40%, 100% { transform: translateX(100%); } }
.acoes { display: grid; gap: 10px; margin-top: 16px; }
.link { color: var(--ink2); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-align: center; padding: 6px; }

/* ---------- começar ---------- */
.comecar-cab { padding: 6px 2px 4px; }
.comecar-cab h1 { font-size: 38px; line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.comecar-cab p { color: var(--ink2); margin-top: 10px; font-size: 16.5px; }
.protos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.proto { border-radius: 20px; border: 1.5px solid var(--linha); background: var(--card); padding: 12px 6px 10px; text-align: center; position: relative; transition: transform .2s var(--mola), background .25s, border-color .25s, color .25s; }
.proto:active { transform: scale(.95); }
.proto b { display: block; font-size: 26px; letter-spacing: -.03em; line-height: 1.05; }
.proto span { font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.proto.sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.proto.sel span { color: rgba(255,255,255,.65); }
.proto .tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--brasa); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.proto-info { margin-top: 12px; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--linha); }
.proto-info h3 { font-size: 17px; }
.proto-info p { color: var(--ink2); font-size: 15px; margin-top: 3px; }
.proto-fases { display: flex; gap: 3px; margin-top: 12px; height: 8px; border-radius: 9px; overflow: hidden; }
.proto-fases i { display: block; height: 100%; }
.proto-fases-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.proto-fases-leg span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 5px; }

.medico-agora { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--ink); color: #fff; border-radius: 22px; margin-top: 14px; text-align: left; width: 100%; }
.medico-agora img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff; }
.medico-agora small { display: block; color: rgba(255,255,255,.6); font-size: 13px; font-weight: 500; }
.medico-agora b { font-size: 16px; display: flex; align-items: center; gap: 4px; }
.medico-agora .tempo-vivo { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 17px; color: #FFB48F; }
.medico-agora .ic { color: rgba(255,255,255,.5); width: 18px; }
.verif { width: 17px; height: 17px; flex: none; }

/* ---------- ranking ---------- */
.titulo-aba { display: flex; align-items: flex-end; justify-content: space-between; margin: 6px 2px 14px; }
.titulo-aba h1 { font-size: 34px; letter-spacing: -.035em; line-height: 1; }
.titulo-aba small { color: var(--ink3); font-size: 14px; font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #ECE4D8; border-radius: 16px; padding: 4px; position: relative; }
.seg button { height: 42px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink2); position: relative; z-index: 1; transition: color .25s; }
.seg button.on { color: var(--ink); }
.seg .seg-pilula { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); background: var(--card); border-radius: 12px; box-shadow: 0 2px 8px rgba(26,23,20,.08); transition: transform .4s var(--mola); }

.medico-card { position: relative; overflow: hidden; margin-top: 14px; border-radius: 28px; background: var(--ink); color: #fff; padding: 18px; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.medico-card::before { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(232,87,42,.55), transparent 65%); animation: deriva 12s ease-in-out infinite; }
.medico-card > * { position: relative; }
.medico-card .foto { width: 64px; height: 64px; position: relative; }
.medico-card .foto img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; }
.medico-card .foto svg { position: absolute; inset: -6px; width: 76px; height: 76px; transform: rotate(-90deg); }
.medico-card .nome { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 17px; }
.medico-card small { color: rgba(255,255,255,.6); font-size: 13.5px; }
.medico-card .grande { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 2px; }
.medico-card .fase-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.12); margin-top: 6px; }
.medico-card .fase-tag i { width: 7px; height: 7px; border-radius: 50%; }

.podio { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin-top: 22px; }
.podio-item { text-align: center; display: grid; justify-items: center; gap: 6px; animation: sobe .7s var(--mola) both; }
.podio-item:nth-child(1) { animation-delay: .12s; }
.podio-item:nth-child(3) { animation-delay: .22s; }
@keyframes sobe { from { transform: translateY(30px); opacity: 0; } }
.podio-item .av-wrap { position: relative; }
.podio-item .coroa { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 26px; color: #C8902E; }
.podio-item .nome { font-weight: 700; font-size: 14.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 3px; justify-content: center; }
.podio-item .val { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink2); }
.degrau { width: 100%; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: rgba(255,255,255,.95); }
.d1 { height: 92px; background: linear-gradient(#E9A23B, #C8802E); }
.d2 { height: 68px; background: linear-gradient(#B9B0A4, #9A9188); }
.d3 { height: 52px; background: linear-gradient(#D49A6A, #B07A4E); }

.lista { margin-top: 14px; background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; }
.linha { display: grid; grid-template-columns: 30px 44px 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--linha); width: 100%; text-align: left; animation: entra .4s var(--suave) both; }
.linha:first-child { border-top: 0; }
.linha .pos { font-weight: 800; color: var(--ink3); font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.linha .quem b { font-size: 16px; display: flex; align-items: center; gap: 4px; }
.linha .quem small { color: var(--ink3); font-size: 13px; display: block; }
.linha .val { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; text-align: right; }
.linha .val small { display: block; font-size: 12px; color: var(--ink3); font-weight: 600; }
.linha.eu { background: #FFF6E9; }
.mini-anel { width: 40px; height: 40px; position: relative; display: grid; place-items: center; }
.mini-anel svg { position: absolute; inset: -2px; width: 44px; height: 44px; transform: rotate(-90deg); }

.voce { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); width: min(448px, calc(100% - 24px)); background: var(--card); border: 1px solid var(--linha); border-radius: 20px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(26,23,20,.12); z-index: 20; animation: sobe .5s var(--mola) both .3s; }
.voce .pos { font-weight: 800; font-size: 18px; }
.voce p { font-size: 14px; color: var(--ink2); line-height: 1.3; }
.voce p b { color: var(--ink); }

.vazio { text-align: center; padding: 34px 20px; }
.vazio .il { width: 110px; height: 110px; margin: 0 auto 10px; --c: var(--ink3); }
.vazio h3 { font-size: 19px; }
.vazio p { color: var(--ink2); margin: 6px 0 16px; font-size: 15.5px; }

/* ---------- comunidade ---------- */
.escrever { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--card); border: 1px solid var(--linha); border-radius: 22px; text-align: left; color: var(--ink3); font-size: 16px; }
.escrever .ic { margin-left: auto; color: var(--ink2); }
.feed { margin-top: 10px; }
.post { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--linha); animation: entra .4s var(--suave) both; }
.post > button { align-self: start; }
.post .cab { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; line-height: 1.2; }
.post .cab b { font-size: 16px; }
.post .cab .quando { color: var(--ink3); font-size: 14px; }
.post .cab .tag-med { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: #E3EFFA; color: #1F6FAD; }
.post .txt { margin-top: 4px; font-size: 16.5px; white-space: pre-wrap; word-wrap: break-word; }
.post .foto { margin-top: 10px; border-radius: 18px; overflow: hidden; border: 1px solid var(--linha); background: var(--linha); }
.post .foto img { width: 100%; max-height: 460px; object-fit: cover; }
.post .acts { display: flex; gap: 18px; margin-top: 10px; color: var(--ink2); }
.post .act { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; height: 34px; font-variant-numeric: tabular-nums; }
.post .act .ic { width: 20px; height: 20px; }
.post .act.on { color: var(--brasa); }
.post .act.on .ic { fill: var(--brasa); fill-opacity: .2; animation: estoura .5s var(--mola); }
.post .act.apagar { margin-left: auto; color: var(--ink3); }
@keyframes estoura { 40% { transform: scale(1.4) rotate(-8deg); } }
.marco-card { margin-top: 6px; border-radius: 20px; padding: 14px; display: flex; align-items: center; gap: 14px; background: var(--mf); border: 1px solid color-mix(in srgb, var(--mc) 25%, transparent); }
.marco-card .num { font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--mc); }
.marco-card .num small { font-size: .45em; font-weight: 700; }
.marco-card p { font-size: 14.5px; color: var(--ink2); line-height: 1.3; }
.marco-card p b { color: var(--ink); display: block; font-size: 16px; }
.mais-feed { text-align: center; padding: 18px; color: var(--ink3); font-size: 14px; }

.coments { display: grid; gap: 14px; margin: 6px 0 12px; max-height: 50vh; overflow-y: auto; }
.coment { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.coment b { font-size: 14.5px; display: flex; align-items: center; gap: 4px; }
.coment p { font-size: 15.5px; white-space: pre-wrap; word-wrap: break-word; }
.coment small { color: var(--ink3); font-weight: 500; font-size: 13px; }
.enviar-linha { display: flex; gap: 8px; align-items: flex-end; }
.enviar-linha textarea { flex: 1; resize: none; border: 1.5px solid var(--linha); border-radius: 16px; padding: 11px 14px; min-height: 48px; max-height: 120px; background: #fff; font-size: 16px; outline: none; }
.enviar-linha textarea:focus, .campo:focus, .compor textarea:focus { border-color: var(--ink); }
.btn-redondo { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.btn-redondo .ic { width: 20px; }

.compor textarea { width: 100%; min-height: 140px; border: 0; outline: none; resize: none; font-size: 18px; background: transparent; padding: 4px 0; }
.compor-foto { position: relative; margin-top: 8px; border-radius: 18px; overflow: hidden; }
.compor-foto img { width: 100%; max-height: 300px; object-fit: cover; }
.compor-foto button { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.compor-barra { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linha); }
.compor-barra .btn-foto { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--bg); font-weight: 600; font-size: 15px; }
.compor-barra .cont { margin-left: auto; color: var(--ink3); font-size: 14px; font-variant-numeric: tabular-nums; }
.compor-barra .btn { width: auto; padding: 0 22px; height: 46px; font-size: 16px; border-radius: 14px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(448px, calc(100% - 24px)); height: 68px; border-radius: 26px; background: rgba(26,23,20,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; box-shadow: 0 14px 40px rgba(26,23,20,.28); }
.nav[hidden] { display: none; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: rgba(255,255,255,.55); font-size: 12.5px; font-weight: 600; position: relative; z-index: 1; transition: color .3s; }
.nav button.on { color: var(--ink); }
.nav-pilula { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 3); border-radius: 20px; background: #fff; transition: transform .45s var(--mola); }
.nav button .ic { width: 23px; height: 23px; }

/* ---------- folhas (bottom sheet) ---------- */
.fundo { position: fixed; inset: 0; z-index: 40; background: rgba(26,23,20,.4); animation: aparece .25s ease both; }
.fundo.sai { animation: some .25s ease both; }
@keyframes aparece { from { opacity: 0; } }
@keyframes some { to { opacity: 0; } }
.folha { position: fixed; z-index: 41; left: 50%; bottom: 0; width: min(480px, 100%); max-height: 92dvh; overflow-y: auto; background: var(--card); border-radius: 30px 30px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); animation: folha .45s var(--mola) both; overscroll-behavior: contain; }
.folha.sai { animation: folhaSai .28s ease-in both; }
@keyframes folha { from { transform: translate(-50%, 100%); } }
@keyframes folhaSai { to { transform: translate(-50%, 100%); } }
.folha .alca { width: 42px; height: 5px; border-radius: 9px; background: var(--linha); margin: 0 auto 14px; }
.folha h2 { font-size: 24px; letter-spacing: -.025em; line-height: 1.1; }
.folha .sub { color: var(--ink2); margin-top: 6px; font-size: 15.5px; }
.folha-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.btn-x { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }

.campo { width: 100%; height: 58px; border: 1.5px solid var(--linha); border-radius: 18px; padding: 0 16px; font-size: 18px; background: #fff; outline: none; transition: border-color .2s; }
.rotulo { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; color: var(--ink2); }
.erro { color: #B4372E; font-size: 14.5px; margin-top: 10px; font-weight: 600; }

/* ---------- perfil ---------- */
.perfil-topo { text-align: center; display: grid; justify-items: center; gap: 6px; }
.perfil-topo h2 { display: flex; align-items: center; gap: 5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stat { background: var(--bg); border-radius: 18px; padding: 12px 8px; text-align: center; }
.stat b { display: block; font-size: 24px; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.ofensiva-big { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, #FFE7D6, #FFD3BD); }
.ofensiva-big .ic { width: 44px; height: 44px; color: var(--brasa); fill: var(--brasa); fill-opacity: .25; }
.ofensiva-big b { font-size: 26px; letter-spacing: -.03em; display: block; line-height: 1; }
.ofensiva-big p { font-size: 14px; color: #7A3A1E; }
.protetores { margin-left: auto; display: flex; gap: 4px; }
.protetores .ic { width: 26px; height: 26px; color: #2D8FD5; fill: #2D8FD5; fill-opacity: .2; }
.protetores .ic.off { color: #E6B9A4; fill: none; }

.caminho { position: relative; margin: 10px 0 4px; }
.caminho-no { display: flex; justify-content: center; margin: 6px 0; }
.caminho-no .no { width: 66px; height: 62px; border-radius: 50%; display: grid; place-items: center; position: relative; background: #E2D9CC; color: #fff; box-shadow: 0 6px 0 #CFC4B5; transition: transform .2s; font-weight: 800; font-size: 22px; }
.caminho-no .no.feito { background: var(--brasa); box-shadow: 0 6px 0 #B9411C; }
.caminho-no .no.hoje { background: var(--ink); box-shadow: 0 6px 0 #000; animation: quica 1.8s var(--mola) infinite; }
.caminho-no .no.final { background: #E9A23B; box-shadow: 0 6px 0 #B47A22; }
.caminho-no .no.final.bloq { background: #E2D9CC; box-shadow: 0 6px 0 #CFC4B5; }
.caminho-no .no .ic { width: 28px; height: 28px; }
.caminho-no .rot { position: absolute; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
@keyframes quica { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

.selos-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
.selo-item { display: grid; justify-items: center; text-align: center; gap: 4px; }
.selo-item b { font-size: 13.5px; line-height: 1.15; }
.selo-item span { font-size: 12px; color: var(--ink3); line-height: 1.2; }
.selo-item.bloq b { color: var(--ink3); }
.selo .selo-num { font: 800 21px var(--sans); fill: #fff; letter-spacing: -.04em; }
.selo .selo-num-mini { font: 800 11px var(--sans); fill: #fff; }
.selo-mini { display: inline-flex; vertical-align: middle; }
.selo-mini .selo { display: block; }

.hist { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.hist div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.hist i { width: 100%; border-radius: 8px 8px 4px 4px; background: var(--linha); display: block; transform-origin: bottom; animation: cresce .8s var(--mola) both; }
.hist i.ok { background: var(--ink); }
.hist span { font-size: 11px; color: var(--ink3); font-weight: 600; }
@keyframes cresce { from { transform: scaleY(0); } }

/* ---------- onboarding ---------- */
.boas { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(18px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom)); }
.boas-progresso { display: flex; gap: 6px; margin-bottom: 18px; }
.boas-progresso i { flex: 1; height: 5px; border-radius: 9px; background: var(--linha); overflow: hidden; }
.boas-progresso i.on { background: var(--ink); }
.boas-hero { position: relative; margin: 8px auto 20px; width: 220px; height: 220px; }
.boas-hero img { position: absolute; inset: 22px; width: 176px; height: 176px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 20px 50px rgba(26,23,20,.18); }
.boas-hero svg { position: absolute; inset: 0; width: 220px; height: 220px; animation: gira 30s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.boas h1 { font-size: 40px; line-height: .98; letter-spacing: -.04em; font-weight: 700; }
.boas .lead { color: var(--ink2); font-size: 17px; margin-top: 12px; }
.boas .rodape { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }
.opcoes { display: grid; gap: 10px; margin-top: 20px; }
.opcao { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border-radius: 20px; border: 1.5px solid var(--linha); background: var(--card); font-weight: 600; font-size: 17px; transition: transform .2s var(--mola), border-color .2s, background .2s; }
.opcao small { display: block; font-weight: 500; color: var(--ink3); font-size: 14px; }
.opcao .bola { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); flex: none; }
.opcao.sel { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.opcao:active { transform: scale(.98); }
.fatos { display: grid; gap: 10px; margin-top: 20px; }
.fato { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 16px; }
.fato i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }

/* ---------- avisos ---------- */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(440px, calc(100% - 24px)); background: var(--ink); color: #fff; border-radius: 20px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 16px 40px rgba(0,0,0,.25); animation: desce .5s var(--mola) both; }
.toast.sai { animation: sobeSai .3s ease-in both; }
.toast .bolinha { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.toast b { display: block; font-size: 15.5px; }
.toast span { font-size: 14px; color: rgba(255,255,255,.72); }
@keyframes desce { from { transform: translate(-50%, -140%); } }
@keyframes sobeSai { to { transform: translate(-50%, -140%); opacity: 0; } }
.xp-voa { position: fixed; z-index: 70; pointer-events: none; font-weight: 800; font-size: 20px; color: #C8902E; animation: voa 1.1s var(--suave) forwards; text-shadow: 0 2px 0 #fff; }
@keyframes voa { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 20% { transform: translate(-50%, -14px) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -70px) scale(1); opacity: 0; } }

/* ---------- celebração ---------- */
#confete { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }
.festa { position: fixed; inset: 0; z-index: 75; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(40px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; animation: aparece .3s ease both; }
.festa::before { content: ''; position: fixed; width: 520px; height: 520px; left: 50%; top: -120px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--fase) 60%, transparent), transparent 65%); z-index: -1; animation: respira 4s ease-in-out infinite; }
@keyframes respira { 50% { transform: translateX(-50%) scale(1.12); } }
.festa .sobre { color: rgba(255,255,255,.6); }
.festa .num-grande { font-size: 92px; font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; animation: pop .7s var(--mola) both .2s; }
.festa .num-grande small { font-size: .36em; letter-spacing: 0; margin: 0 .12em 0 .04em; font-weight: 700; }
.festa h2 { font-size: 28px; margin-top: 6px; letter-spacing: -.03em; }
.festa .resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 400px; margin-top: 24px; }
.festa .resumo div { background: rgba(255,255,255,.08); border-radius: 18px; padding: 14px; animation: sobe .6s var(--mola) both; }
.festa .resumo div:nth-child(2) { animation-delay: .15s; }
.festa .resumo b { display: block; font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.festa .resumo > div > span { font-size: 13.5px; color: rgba(255,255,255,.6); font-weight: 600; }
.festa .resumo .fogo b { color: #FF9A6B; }
.novos-selos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 22px; }
.novo-selo { display: grid; justify-items: center; gap: 6px; animation: medalha .9s var(--mola) both; }
.novo-selo b { font-size: 14px; }
@keyframes medalha { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 70% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1); } }
.festa .acoes { width: 100%; max-width: 400px; margin-top: auto; padding-top: 24px; }
.festa .btn.claro { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }

/* ---------- ilustrações ---------- */
.il { overflow: visible; }
.il * { transform-box: view-box; }
.il-traco { stroke-dasharray: 140; animation: traco 3.2s var(--suave) infinite; }
@keyframes traco { 0% { stroke-dashoffset: 140; } 60%, 100% { stroke-dashoffset: 0; } }
.il-cubo { animation: cai 3.3s ease-in infinite; animation-delay: var(--d); opacity: 0; }
@keyframes cai { 0% { transform: translateY(-6px); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(54px); opacity: 0; } }
.il-onda { transform-origin: 60px 60px; animation: onda 3s ease-out infinite; animation-delay: var(--d); opacity: 0; }
@keyframes onda { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
.il-bloco { animation: esvazia 3.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes esvazia { 0%, 20% { opacity: 1; } 50%, 80% { opacity: .08; } 100% { opacity: 1; } }
.il-seta { animation: corre 1s linear infinite; }
@keyframes corre { to { stroke-dashoffset: -9; } }
.il-gordura { transform-origin: 92px 75px; animation: acende 3.2s ease-in-out infinite; }
@keyframes acende { 0%, 30% { transform: scale(.85); opacity: .5; } 60%, 80% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(.85); opacity: .5; } }
.il-arco { stroke-dasharray: 100; animation: enche 3.4s var(--suave) infinite; }
@keyframes enche { 0% { stroke-dashoffset: 100; } 55%, 80% { stroke-dashoffset: 4; } 100% { stroke-dashoffset: 100; } }
.il-ponteiro { transform-origin: 60px 82px; animation: ponteiro 3.4s var(--suave) infinite; }
@keyframes ponteiro { 0% { transform: rotate(-88deg); } 50% { transform: rotate(78deg); } 56% { transform: rotate(70deg); } 62%, 80% { transform: rotate(76deg); } 100% { transform: rotate(-88deg); } }
.il-txt { font: 800 12px var(--sans); letter-spacing: .1em; }
.il-brilho { transform-origin: 60px 60px; animation: respiraIl 2.4s ease-in-out infinite; }
@keyframes respiraIl { 50% { transform: scale(1.25); opacity: .25; } }
.il-faiscas { transform-origin: 60px 60px; animation: faisca 2.4s ease-in-out infinite; }
@keyframes faisca { 0%, 100% { transform: scale(.85) rotate(0); opacity: .4; } 50% { transform: scale(1.05) rotate(10deg); opacity: 1; } }
.il-raio { transform-origin: 60px 60px; animation: raio 2.4s ease-in-out infinite; }
@keyframes raio { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.1); } 20% { transform: scale(.97); } }
.il-membrana { transform-origin: 60px 60px; animation: gira 24s linear infinite; }
.il-orbita { transform-origin: 60px 60px; animation: orbita 6s linear infinite; animation-delay: var(--d); }
@keyframes orbita { 0% { transform: rotate(0) scale(1); opacity: 1; } 80% { transform: rotate(300deg) scale(.55); opacity: .9; } 100% { transform: rotate(360deg) scale(.3); opacity: 0; } }
.il-estrela { transform-box: fill-box; transform-origin: center; animation: pisca 2.8s ease-in-out infinite; animation-delay: var(--d); }
@keyframes pisca { 50% { transform: scale(.3); opacity: .3; } }

.carregando { display: grid; place-items: center; min-height: 60vh; }
.carregando i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--linha); border-top-color: var(--ink); animation: gira .8s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (min-width: 560px) {
  body { background: #EAE3D8; }
  #app { background: var(--bg); box-shadow: 0 0 0 1px var(--linha); }
}

/* base científica, liberado, quebra, frase */
.fonte { display: flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 12.5px; color: var(--ink3); font-weight: 600; text-align: left; line-height: 1.3; }
.fonte .ic { width: 14px; height: 14px; flex: none; }
.fontes { margin: 14px 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink2); }
.pode { display: flex; flex-wrap: wrap; gap: 7px; }
.pode span { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 600; padding: 7px 12px 7px 9px; border-radius: 99px; background: #E3F2EC; color: #0E6B5B; }
.pode .ic { width: 15px; height: 15px; }
.quebra { margin-top: 12px; font-size: 14.5px; color: var(--ink2); }
.quebra b { color: #B4372E; }
.quebrar { background: var(--ink); color: #fff; border-color: var(--ink); }
.quebrar ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 16px; }
.quebrar li::marker { color: #FFB48F; font-weight: 800; }
.quebrar .quebra { color: rgba(255,255,255,.55); }
.frase { margin: 14px 0 0; padding: 18px; border-radius: var(--raio); background: var(--card); border: 1px solid var(--linha); }
.frase blockquote { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.frase figcaption { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--ink2); font-weight: 600; }
.frase figcaption img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.aviso-saude { font-size: 13.5px; color: var(--ink3); margin-top: 12px; line-height: 1.35; }

.il-chama { transform-origin: 60px 100px; animation: chamaIl 1.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes chamaIl { 0%, 100% { transform: scale(1, 1) skewX(0); } 33% { transform: scale(.96, 1.06) skewX(-2deg); } 66% { transform: scale(1.03, .96) skewX(2deg); } }
.il-fluxo { animation: fluxo 1.4s linear infinite; }
@keyframes fluxo { to { stroke-dashoffset: -18; } }
.il-escudo { transform-origin: 60px 60px; animation: respiraIl 2.4s ease-in-out infinite; }

/* marcas de hora e card da hora */
.dial .tique { stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .55; }
.dial .tique.passou { opacity: .9; }
.hora-cab { display: flex; align-items: center; gap: 12px; }
.hora-num { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.03em; flex: none; transition: background 1s; }
.hora-cab h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; }
.hora-txt { margin-top: 12px; font-size: 16.5px; }
.hora-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13.5px; color: var(--ink3); font-weight: 600; }
.hora-fonte { padding: 4px 10px; border-radius: 99px; background: var(--bg); color: var(--ink2); }
.hora-pe b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hora-card.nova { animation: novaHora .7s var(--mola); }
@keyframes novaHora { 0% { transform: scale(.96); box-shadow: 0 0 0 0 color-mix(in srgb, var(--fase) 50%, transparent); } 60% { transform: scale(1.01); box-shadow: 0 0 0 10px transparent; } }

.dial .rot-hora { font: 600 11px var(--sans); fill: var(--ink3); }
.dial .rot-hora.fase { font-weight: 800; fill: var(--ink); }

.dial .rot-hora.meta { font-weight: 800; fill: var(--ink); text-decoration: underline; }
.contador { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(255,255,255,.75); border: 1px solid var(--linha); font-size: 14px; color: var(--ink2); backdrop-filter: blur(8px); text-align: left; line-height: 1.25; }
.contador b { color: var(--ink); }
.contador .rostos { display: flex; }
.contador .rostos:empty { display: none; }
.contador .rostos .av { border: 2px solid #fff; margin-left: -9px; font-size: 10px !important; }
.contador .rostos .av:first-child { margin-left: 0; }
.contador .ao-vivo { width: 8px; height: 8px; border-radius: 50%; background: #2DB36F; flex: none; animation: farolVerde 1.8s ease-out infinite; }
.contador .rostos:empty + .ao-vivo { margin-left: 6px; }
@keyframes farolVerde { 0% { box-shadow: 0 0 0 0 rgba(45,179,111,.5); } 100% { box-shadow: 0 0 0 8px transparent; } }
.objetivos { display: flex; flex-wrap: wrap; gap: 6px; }
.objetivos button { height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--linha); font-weight: 600; font-size: 14.5px; white-space: nowrap; background: var(--card); transition: background .2s, color .2s; }
.objetivos button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.regra { margin-top: 12px; font-size: 15px; color: var(--ink2); }
.lista-pratos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.lista-pratos li { padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.lista-pratos small { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--brasa); }
.lista-pratos b { display: block; font-size: 16px; line-height: 1.3; margin-top: 3px; }
.lista-pratos span { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--ink3); font-weight: 600; }

.curva .onda-rot { font-size: 10px; fill: var(--ink2); font-weight: 700; }
.nota-curva { margin-top: 10px; font-size: 13.5px; color: var(--ink3); line-height: 1.4; }
.link-inline { color: var(--ink2); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

/* tutorial */
.tour { position: fixed; inset: 0; z-index: 90; }
.tour-sombra { position: fixed; inset: 0; width: 100%; height: 100%; }
.tour-sombra path { fill: rgba(20,17,14,.78); }
.tour-buraco { position: fixed; border-radius: 22px; transition: left .45s var(--suave), top .45s var(--suave), width .45s var(--suave), height .45s var(--suave); pointer-events: none; }
.tour-buraco::after { content: ''; position: absolute; inset: -4px; border-radius: 26px; border: 2px solid rgba(255,255,255,.85); animation: halo 1.8s ease-out infinite; }
.tour-balao { position: fixed; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); background: var(--card); border-radius: 24px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.tour-balao.entra { animation: balao .45s var(--mola); }
@keyframes balao { from { opacity: 0; transform: translate(-50%, 12px) scale(.96); } }
.tour-balao h3 { font-size: 20px; letter-spacing: -.02em; margin-top: 8px; }
.tour-balao p { color: var(--ink2); font-size: 16px; margin-top: 4px; }
.tour-pontos { display: flex; gap: 5px; }
.tour-pontos i { width: 7px; height: 7px; border-radius: 9px; background: var(--linha); transition: width .3s, background .3s; }
.tour-pontos i.on { width: 20px; background: var(--brasa); }
.tour-acoes { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tour-acoes .btn { width: auto; padding: 0 22px; margin-left: auto; }

/* dados de perfil */
.dados-form { margin-top: 18px; display: grid; gap: 12px; }
.sexo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sexo .opcao { justify-content: center; font-size: 17px; }
.medidas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.medidas label { position: relative; display: grid; gap: 5px; }
.medidas span { font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.medidas .campo { padding: 0 34px 0 12px; font-weight: 700; font-size: 19px; }
.medidas em { position: absolute; right: 10px; bottom: 19px; font-style: normal; font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.opcao.gestante { font-size: 15.5px; gap: 10px; padding: 14px; }
.opcao.gestante .caixa { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--linha); display: grid; place-items: center; flex: none; }
.opcao.gestante.sel .caixa { background: var(--ink); border-color: var(--ink); color: #fff; }
.opcao.gestante .caixa .ic { width: 15px; height: 15px; }
.dado-ok { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #0E6B5B; background: #E3F2EC; padding: 10px 12px; border-radius: 14px; }
.dado-ok .ic { width: 18px; height: 18px; }
.dado-alerta { font-size: 14.5px; color: #8A2E20; background: #FBE6E1; padding: 10px 12px; border-radius: 14px; margin-top: 8px; }
.agua-meta { font-size: 13.5px; color: var(--ink3); margin: -6px 0 12px; font-weight: 500; }
.meus-dados { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.meus-dados span { padding: 5px 10px; border-radius: 99px; background: var(--bg); }
.meus-dados .ic { width: 16px; height: 16px; color: var(--ink3); }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }

.numero-grande { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 34px 0 10px; padding-bottom: 10px; border-bottom: 2px solid var(--linha); }
.numero-grande:focus-within { border-color: var(--ink); }
.numero-grande input { width: 4.2ch; border: 0; background: transparent; outline: none; font-size: 64px; font-weight: 800; letter-spacing: -.04em; text-align: right; padding: 0; }
.numero-grande input::placeholder { color: var(--linha); }
.numero-grande span { font-size: 22px; font-weight: 700; color: var(--ink3); }
#dadosRetorno .dado-ok, #dadosRetorno .dado-alerta { margin-top: 12px; }
