/* Foquinha: pouca informação por vez, toques grandes, estilo "adesivo" fofo.
   Cores em variáveis: cada tema (body[data-tema]) troca a paleta inteira.
   Obs.: os nomes "rosa" = cor principal e "lilas" = cor de apoio, em qualquer tema. */
:root {
  --rosa: #F7C9DC;
  --rosa-forte: #E77FAE;
  --rosa-vivo: #F296BF;
  --rosa-escuro: #C24E7A;
  --rosa-claro: #FDE7F1;
  --rosa-escuro-rgb: 194, 78, 122;
  --rosa-forte-rgb: 231, 127, 174;
  --lilas: #DCD0F6;
  --lilas-forte: #9B7FD6;
  --lilas-escuro: #6A50B0;
  --lilas-claro: #F4EFFC;
  --lilas-borda: #EEE6FB;
  --lilas-sombra: #B7A6E6;
  --lilas-escuro-rgb: 110, 84, 181;
  --fundo-1: #FBE1EE;
  --fundo-2: #F1E8FD;
  --fundo-3: #FFF5EF;
  --topo-vidro: rgba(251, 225, 238, .82);
  --papel: #FFF3F8;
  --tile-1: #FDE7F1;
  --tile-2: #EFE8FC;
  --tile-3: #FFEFE6;
  --tile-4: #F6E7FA;
  --creme: #FFF8F2;
  --texto: #3D2C5C;
  --texto-suave: #75668F;
  --sombra: 0 10px 28px rgba(var(--rosa-escuro-rgb), .14);
  --sombra-leve: 0 3px 12px rgba(var(--lilas-escuro-rgb), .10);
  --raio: 28px;
  --titulo: 'DynaPuff', 'Lexend', ui-rounded, system-ui, sans-serif;
  --texto-fonte: 'Lexend', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- temas ---------- */
body[data-tema="oceano"] {
  --rosa: #BFE3F7; --rosa-forte: #4FA6DE; --rosa-vivo: #73BCEB; --rosa-escuro: #2C78AE; --rosa-claro: #E1F1FB;
  --rosa-escuro-rgb: 44, 120, 174; --rosa-forte-rgb: 79, 166, 222;
  --lilas: #C9ECE7; --lilas-forte: #3FAFA3; --lilas-escuro: #237F75; --lilas-claro: #E9F7F5; --lilas-borda: #D5EEEA; --lilas-sombra: #8FD1C8;
  --lilas-escuro-rgb: 35, 127, 117;
  --fundo-1: #DCEFFB; --fundo-2: #E3F6F3; --fundo-3: #F5FBFF; --topo-vidro: rgba(220, 239, 251, .85); --papel: #F1F8FD;
  --tile-1: #E1F1FB; --tile-2: #E3F5F2; --tile-3: #FFF0E4; --tile-4: #ECEAFB;
  --texto: #1F3E5A; --texto-suave: #5B7890;
}
body[data-tema="pessego"] {
  --rosa: #FCD3C4; --rosa-forte: #EE8467; --rosa-vivo: #F5A18A; --rosa-escuro: #BF5638; --rosa-claro: #FFE9E0;
  --rosa-escuro-rgb: 191, 86, 56; --rosa-forte-rgb: 238, 132, 103;
  --lilas: #FBE5B4; --lilas-forte: #E2A033; --lilas-escuro: #9E6A12; --lilas-claro: #FFF6E2; --lilas-borda: #FBEBCB; --lilas-sombra: #EDC47D;
  --lilas-escuro-rgb: 158, 106, 18;
  --fundo-1: #FFE4DA; --fundo-2: #FFF1D8; --fundo-3: #FFF9F3; --topo-vidro: rgba(255, 228, 218, .85); --papel: #FFF5F1;
  --tile-1: #FFE9E0; --tile-2: #FFF3DA; --tile-3: #FDE6EC; --tile-4: #EAF4E4;
  --texto: #4A2B25; --texto-suave: #8A665C;
}
body[data-tema="menta"] {
  --rosa: #BDEBD9; --rosa-forte: #3FB68D; --rosa-vivo: #66CCA8; --rosa-escuro: #22825F; --rosa-claro: #DEF5EC;
  --rosa-escuro-rgb: 34, 130, 95; --rosa-forte-rgb: 63, 182, 141;
  --fundo-1: #DBF4EA; --fundo-2: #ECEBFD; --fundo-3: #F8FFFC; --topo-vidro: rgba(219, 244, 234, .85); --papel: #F1FBF7;
  --tile-1: #DEF5EC; --tile-2: #ECE8FC; --tile-3: #FFF1E6; --tile-4: #E3F2FB;
  --texto: #1E4537; --texto-suave: #557A6C;
}
body[data-tema="lavanda"] {
  --rosa: #D9CCF5; --rosa-forte: #9478D6; --rosa-vivo: #AE95E6; --rosa-escuro: #654AAE; --rosa-claro: #EEE7FC;
  --rosa-escuro-rgb: 101, 74, 174; --rosa-forte-rgb: 148, 120, 214;
  --lilas: #FAE5AE; --lilas-forte: #D9A92C; --lilas-escuro: #93700D; --lilas-claro: #FFF7DC; --lilas-borda: #F8EAC2; --lilas-sombra: #E8C76E;
  --lilas-escuro-rgb: 147, 112, 13;
  --fundo-1: #EBE2FC; --fundo-2: #FFF3D2; --fundo-3: #FFFDF6; --topo-vidro: rgba(235, 226, 252, .85); --papel: #F7F2FE;
  --tile-1: #EEE7FC; --tile-2: #FFF4D6; --tile-3: #FCE8F1; --tile-4: #E4F1FB;
  --texto: #33265A; --texto-suave: #6F6491;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }

body {
  font-family: var(--texto-fonte);
  font-weight: 400;
  color: var(--texto);
  background: linear-gradient(180deg, var(--fundo-1) 0%, var(--fundo-2) 45%, var(--fundo-3) 100%) fixed;
  transition: background .4s;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lilas-forte); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--titulo); }

/* ---------- bolhas subindo no fundo ---------- */
#bolhas { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#bolhas span {
  position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, .25) 35%, rgba(255, 255, 255, .05) 70%);
  border: 1.5px solid rgba(255, 255, 255, .75);
  animation: subir linear infinite;
}
#bolhas span:nth-child(1) { left: 6%; width: 22px; height: 22px; animation-duration: 16s; }
#bolhas span:nth-child(2) { left: 18%; width: 12px; height: 12px; animation-duration: 11s; animation-delay: -4s; }
#bolhas span:nth-child(3) { left: 33%; width: 30px; height: 30px; animation-duration: 21s; animation-delay: -9s; }
#bolhas span:nth-child(4) { left: 52%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: -2s; }
#bolhas span:nth-child(5) { left: 67%; width: 26px; height: 26px; animation-duration: 18s; animation-delay: -12s; }
#bolhas span:nth-child(6) { left: 79%; width: 10px; height: 10px; animation-duration: 10s; animation-delay: -6s; }
#bolhas span:nth-child(7) { left: 88%; width: 20px; height: 20px; animation-duration: 15s; animation-delay: -1s; }
#bolhas span:nth-child(8) { left: 95%; width: 14px; height: 14px; animation-duration: 12s; animation-delay: -8s; }
@keyframes subir {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(14px, -55vh); }
  100% { transform: translate(-8px, -115vh); opacity: 0; }
}

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 5;
  background: var(--topo-vidro);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topo-dentro {
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 18px 10px;
}
.marca {
  position: relative; margin: 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -.2px;
  color: var(--rosa-escuro); text-shadow: 0 2px 0 #fff, 0 3px 0 rgba(var(--rosa-escuro-rgb), .18);
}
.marca-bolhas {
  position: absolute; right: -16px; top: 2px; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--lilas-forte); opacity: .7;
}
.marca-bolhas::after {
  content: ''; position: absolute; right: -9px; top: -9px; width: 5px; height: 5px; border-radius: 50%;
  border: 2px solid var(--rosa-forte);
}
.topo-direita { display: flex; gap: 8px; align-items: center; }
.icone-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .8);
  display: grid; place-items: center; box-shadow: var(--sombra-leve); color: var(--lilas-escuro);
}
.icone-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icone-btn[aria-pressed="false"] { color: #B5A8CF; }
.peixes {
  display: flex; align-items: center; gap: 5px; background: #fff; border-radius: 999px;
  padding: 6px 14px 6px 10px; font-family: var(--titulo); font-weight: 500; font-size: 1.1rem;
  box-shadow: var(--sombra-leve); border: 2px solid var(--rosa-claro);
}
.peixe-svg { width: 22px; height: 22px; flex: none; }
.peixes.pulo { animation: pulo .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pulo { 40% { transform: scale(1.25) rotate(-4deg); } }

/* ---------- estrutura ---------- */
.conteudo {
  position: relative; z-index: 1; max-width: 520px; margin: 0 auto;
  padding: 4px 16px calc(120px + env(safe-area-inset-bottom));
}
.card { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; }
.secao { margin-top: 26px; }
.secao h2 { font-size: 1.25rem; margin: 0 0 10px; font-weight: 600; }
.secao-titulo { display: flex; justify-content: space-between; align-items: baseline; }
.dica { font-size: .8rem; color: var(--texto-suave); font-weight: 600; }
.sub { margin: 0; color: var(--texto-suave); font-size: .92rem; }
.link { background: none; border: 0; padding: 0; color: var(--lilas-escuro); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link.suave { color: var(--texto-suave); font-weight: 500; text-decoration-thickness: 1px; }
.link.pequeno { font-size: .8rem; }
.perigo-texto { color: #A93356 !important; }

/* ---------- botões e chips ---------- */
.btn {
  font-family: var(--titulo); font-weight: 600; letter-spacing: .2px;
  background: linear-gradient(180deg, var(--rosa-vivo), var(--rosa-forte)); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 22px; box-shadow: 0 5px 0 var(--rosa-escuro), 0 8px 18px rgba(var(--rosa-escuro-rgb), .25);
  transition: transform .08s, box-shadow .08s; position: relative;
}
.btn::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 4px; height: 38%;
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
}
.btn:active { transform: translateY(4px) scale(.98); box-shadow: 0 1px 0 var(--rosa-escuro), 0 3px 8px rgba(var(--rosa-escuro-rgb), .2); }
.btn.secundario { background: linear-gradient(180deg, #E8DEFB, var(--lilas)); color: var(--texto); box-shadow: 0 5px 0 var(--lilas-sombra); }
.btn.pequeno { padding: 6px 14px; font-size: .9rem; box-shadow: 0 3px 0 var(--rosa-escuro); }
.btn.grande { font-size: 1.4rem; padding: 15px 24px; width: 100%; max-width: 290px; margin-top: 12px; }
.btn.largo { width: 100%; }
.btn.brilho { animation: brilhar 1.4s ease-in-out infinite; }
@keyframes brilhar { 50% { transform: scale(1.08); } }
.chip {
  background: #fff; border: 2px solid var(--lilas); border-radius: 999px; padding: 8px 14px;
  font-weight: 600; font-size: .88rem; color: var(--lilas-escuro);
}
.chip.ativo { background: var(--lilas-forte); border-color: var(--lilas-forte); color: #fff; }
.mini {
  font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; flex: none;
  background: var(--lilas-claro); color: var(--texto-suave); border: 2px solid #fff;
}
.mini.urgente, .mini.bonus { background: var(--rosa-claro); color: var(--rosa-escuro); }
.mini.hoje { color: var(--lilas-escuro); }
.mini.passou { background: #FFF0DA; color: #8A5716; }
.rotulo {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--rosa-escuro); background: var(--rosa-claro); padding: 4px 12px; border-radius: 999px;
}

/* ---------- Foquinha ---------- */
.foquinha { width: 180px; height: 155px; }
.foquinha svg { width: 100%; height: 100%; overflow: visible; }
.humor-feliz svg, .humor-aventureira svg { animation: boiar 3.2s ease-in-out infinite; }
.humor-celebrando svg { animation: pular .5s ease-in-out 3; }
.humor-agitada svg { animation: tremer .35s ease-in-out infinite; }
.humor-feliz .olhos { transform-box: fill-box; transform-origin: center; animation: piscar 4.5s infinite; }
@keyframes boiar { 50% { transform: translateY(-5px) rotate(-1deg); } }
@keyframes pular { 50% { transform: translateY(-16px) scale(1.05); } }
@keyframes tremer { 25% { transform: rotate(-2.5deg); } 75% { transform: rotate(2.5deg); } }
@keyframes piscar { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

/* ---------- cena: balão + Foquinha segurando o cartão ---------- */
.cena { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; margin: 6px 0 -34px; }
.cena-foca { width: 150px; height: 130px; background: none; border: 0; padding: 0; }
.cena-foca:active svg { transform: scale(.94); }
.balao {
  position: relative; background: #fff; border-radius: 22px; padding: 10px 18px; margin-bottom: 4px;
  font-weight: 600; font-size: 1.02rem; line-height: 1.35; text-align: center; max-width: 320px;
  box-shadow: var(--sombra-leve); border: 2px solid var(--rosa-claro); animation: balao-entra .35s cubic-bezier(.2, 1.4, .4, 1);
}
.balao::after {
  content: ''; position: absolute; bottom: -9px; left: 50%; width: 16px; height: 16px; background: #fff;
  border-right: 2px solid var(--rosa-claro); border-bottom: 2px solid var(--rosa-claro);
  transform: translateX(-50%) rotate(45deg); border-bottom-right-radius: 4px;
}
@keyframes balao-entra { from { transform: scale(.85); opacity: 0; } }

/* ---------- tela de entrada (login) ---------- */
body.deslogada .nav, body.deslogada .peixes, body.deslogada #btn-instalar, body.deslogada #btn-lembretes { display: none !important; }

/* ---------- lembretes ---------- */
.icone-btn { position: relative; }
.ponto-ligado {
  display: none; position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rosa-forte); border: 2px solid #fff;
}
#btn-lembretes.ligado { color: var(--rosa-escuro); }
#btn-lembretes.ligado .ponto-ligado { display: block; }
#btn-lembretes.ligado svg { fill: rgba(var(--rosa-forte-rgb), .2); }
.status-lembretes {
  margin: 0 0 6px; padding: 10px 14px; border-radius: 16px; background: #E1F5EA; color: #2A7350; font-weight: 600; text-align: center;
}
.opcao-check {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin-bottom: 8px; border-radius: 16px;
  background: var(--lilas-claro); font-weight: 500; cursor: pointer;
}
.opcao-check input { width: 22px; height: 22px; accent-color: var(--rosa-forte); flex: none; }
.campo-hora { margin: 4px 0 0 34px; max-width: 180px; }
.convite-lembretes {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-top: 16px;
  padding: 14px 16px; border-radius: 22px; background: rgba(255, 255, 255, .8); border: 2px dashed var(--rosa-forte);
  animation: carta-entra .4s ease-out;
}
.convite-icone { font-size: 1.6rem; animation: balancar 2.4s ease-in-out infinite; transform-origin: top center; }
@keyframes balancar { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 90% { transform: rotate(6deg); } }
.convite-acoes { display: flex; gap: 18px; align-items: center; }
.entrada { display: flex; flex-direction: column; align-items: center; padding-top: 18px; max-width: 440px; margin: 0 auto; }
.entrada .cena-foca { position: relative; z-index: 2; margin-bottom: -34px; width: 170px; height: 147px; }
.entrada-card { width: 100%; gap: 12px; }
.entrada-card .campo-texto { text-align: center; font-size: 1.15rem; }
.conta-info { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }

/* ---------- guia de primeira visita ---------- */
.guia {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; min-height: 440px; padding-top: 18px;
}
.guia.entra-frente { animation: guia-frente .35s cubic-bezier(.2, 1.2, .4, 1); }
.guia.entra-tras { animation: guia-tras .35s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes guia-frente { from { opacity: 0; transform: translateX(48px); } }
@keyframes guia-tras { from { opacity: 0; transform: translateX(-48px); } }
.guia .pular { position: absolute; top: -8px; right: 0; }
.guia-visual { width: 100%; height: 180px; display: grid; place-items: center; }
.guia-foca { width: 180px; height: 155px; }
.guia h2 { font-size: 1.65rem; margin: 6px 0 0; line-height: 1.15; }
.guia p { margin: 0; max-width: 300px; font-size: 1.08rem; line-height: 1.5; }
.guia p strong { color: var(--rosa-escuro); }
.guia-pontos { margin: 12px 0 6px; }
.guia-acoes { width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.guia-acoes.em-linha { flex-direction: row; justify-content: space-between; align-items: center; }

.mock-agora {
  width: 230px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 16px 20px;
  border-radius: 24px; border: 3px solid #fff; background: linear-gradient(180deg, #fff, var(--papel)); box-shadow: var(--sombra);
  transform: rotate(-2deg);
}
.mock-titulo { font-family: var(--titulo); font-weight: 600; font-size: 1.25rem; }
.mock-btn {
  position: relative; font-family: var(--titulo); font-weight: 600; color: #fff; padding: 8px 26px; border-radius: 999px;
  background: linear-gradient(180deg, var(--rosa-vivo), var(--rosa-forte)); box-shadow: 0 4px 0 var(--rosa-escuro);
  animation: apertar 1.6s ease-in-out infinite;
}
.mock-dedo { position: absolute; right: -26px; bottom: -26px; font-size: 1.9rem; animation: dedo 1.6s ease-in-out infinite; }
@keyframes apertar { 45%, 55% { transform: translateY(3px); box-shadow: 0 1px 0 var(--rosa-escuro); } }
@keyframes dedo { 0%, 100% { transform: translate(8px, 8px); } 45%, 55% { transform: translate(-6px, -6px) scale(.92); } }

.mock-premios { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mock-voa {
  display: flex; align-items: center; gap: 4px; background: #fff; color: var(--rosa-escuro); border: 2px solid var(--rosa-claro);
  font-family: var(--titulo); font-weight: 500; font-size: 1.5rem; padding: 6px 16px; border-radius: 999px; box-shadow: var(--sombra);
  animation: boiar 2.2s ease-in-out infinite;
}
.mock-voa .peixe-svg { width: 28px; height: 28px; }
.mock-medalhas { display: flex; gap: 14px; }
.mock-medalhas span {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(135deg, var(--rosa), var(--lilas)); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rosa-forte);
  animation: girar-entra .8s cubic-bezier(.2, 1.3, .4, 1) both;
}
.mock-medalhas span:nth-child(2) { animation-delay: .15s; }
.mock-medalhas span:nth-child(3) { animation-delay: .3s; }

/* ---------- cartão "Agora" ---------- */
.agora {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 46px 20px 20px; border: 3px solid #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(220, 208, 246, .55) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 26%, rgba(247, 201, 220, .7) 0 10px, transparent 11px),
    radial-gradient(circle at 92% 84%, rgba(220, 208, 246, .45) 0 6px, transparent 7px),
    linear-gradient(180deg, #FFFFFF, var(--papel));
}
.agora.entrar { animation: carta-entra .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes carta-entra { from { transform: translateY(18px) scale(.94); opacity: 0; } }
.agora-topo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.agora-emoji { font-size: 2.6rem; line-height: 1.15; }
.agora-titulo { font-size: 1.6rem; margin: 2px 0 0; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.agora-sub { margin: 0; color: var(--texto-suave); font-weight: 600; font-size: .95rem; }
.agora-links { display: flex; gap: 24px; justify-content: center; margin-top: 10px; }
.pontos { display: flex; gap: 7px; margin: 4px 0 0; }
.ponto { width: 11px; height: 11px; border-radius: 50%; background: var(--lilas-claro); border: 2px solid var(--lilas); transition: .2s; }
.ponto.ok { background: var(--rosa-forte); border-color: var(--rosa-forte); }
.ponto.atual { border-color: var(--lilas-forte); background: #fff; transform: scale(1.35); }
.contagem.urgente { color: var(--rosa-escuro); animation: pulsar 1.2s ease-in-out infinite; }
.contagem.hoje { color: var(--lilas-escuro); }
.contagem.passou { color: #8A5716; }
@keyframes pulsar { 50% { opacity: .5; } }

.passos { list-style: none; margin: 12px 0 0; padding: 0; width: 100%; text-align: left; }
.passo {
  display: flex; align-items: center; gap: 12px; width: 100%; background: var(--lilas-claro);
  border: 0; border-radius: 16px; padding: 11px 12px; margin-bottom: 6px; text-align: left; font-weight: 500;
}
.passo.ok .passo-texto { text-decoration: line-through; color: var(--texto-suave); }

.check {
  width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--lilas-forte);
  flex: none; display: grid; place-items: center; background: #fff; transition: background .15s;
}
.ok .check, .check.ok { background: var(--rosa-forte); border-color: var(--rosa-forte); }
.ok .check::after, .check.ok::after {
  content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0;
  transform: translate(0, -1px) rotate(45deg);
}

/* ---------- fila escondida ---------- */
.ver-fila {
  display: flex; align-items: center; gap: 8px; margin: 22px auto 0;
  background: rgba(255, 255, 255, .7); border: 2px dashed var(--lilas-forte); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; color: var(--lilas-escuro);
}
.contador {
  background: var(--lilas-forte); color: #fff; border-radius: 999px; font-size: .78rem; padding: 2px 9px; font-weight: 600;
}
.fila { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fila li { animation: carta-entra .3s ease-out both; }
.fila li:nth-child(2) { animation-delay: .04s; }
.fila li:nth-child(3) { animation-delay: .08s; }
.fila li:nth-child(4) { animation-delay: .12s; }
.linha {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px;
  padding: 8px 12px; min-height: 54px; box-shadow: var(--sombra-leve); border: 2px solid #fff;
}
.linha-botao { width: 100%; text-align: left; }
.linha-emoji { font-size: 1.3rem; width: 28px; text-align: center; flex: none; }
.linha-corpo {
  flex: 1; min-width: 0; background: none; border: 0; padding: 6px 0; text-align: left; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.check-btn { background: none; border: 0; padding: 2px; display: grid; border-radius: 50%; }
.check-btn:hover .check { background: var(--rosa-claro); }
.editar-icone { font-size: .9rem; opacity: .7; }
.linha.feita { box-shadow: none; background: rgba(255, 255, 255, .55); min-height: 46px; }
.linha.feita .linha-corpo { text-decoration: line-through; color: var(--texto-suave); font-weight: 600; }
.feitas { margin-top: 18px; text-align: center; }
.feitas[open] { text-align: left; }
.feitas summary {
  display: inline-block; cursor: pointer; font-weight: 600; color: #2A7350; background: #E1F5EA;
  padding: 6px 14px; border-radius: 999px; list-style: none; font-size: .88rem;
}
.feitas summary::-webkit-details-marker { display: none; }
.dica-card {
  width: 100%; margin-top: 18px; border: 2px dashed var(--lilas-forte); background: rgba(255, 255, 255, .6);
  border-radius: 18px; padding: 14px; font-weight: 600; color: var(--lilas-escuro);
}
.fab {
  position: fixed; right: max(18px, calc(50vw - 242px)); bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 9;
  width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff;
  background: linear-gradient(180deg, var(--rosa-vivo), var(--rosa-forte)); color: #fff;
  font-family: var(--titulo); font-size: 2.2rem; font-weight: 600; line-height: 1;
  box-shadow: 0 5px 0 var(--rosa-escuro), 0 12px 26px rgba(var(--rosa-escuro-rgb), .35);
}
.fab:active { transform: translateY(3px) scale(.95); box-shadow: 0 2px 0 var(--rosa-escuro); }

/* ---------- rotinas ---------- */
.grade-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  border: 3px solid #fff; border-radius: 24px; padding: 16px 10px 14px; box-shadow: var(--sombra-leve);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: transform .1s;
}
.tile:active { transform: scale(.96); }
.tile:nth-child(4n+1) { background: var(--tile-1); }
.tile:nth-child(4n+2) { background: var(--tile-2); }
.tile:nth-child(4n+3) { background: var(--tile-3); }
.tile:nth-child(4n+4) { background: var(--tile-4); }
.tile-emoji {
  font-size: 1.8rem; width: 58px; height: 58px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: var(--sombra-leve);
}
.tile-emoji.grande { width: 80px; height: 80px; font-size: 2.6rem; }
.tile-nome { font-family: var(--titulo); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.tile-sub { font-size: .75rem; color: var(--texto-suave); font-weight: 600; }
.tile.ja .tile-sub { color: #2A7350; }
.criar-rotina {
  width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px 16px; border-radius: 22px; border: 2.5px dashed var(--rosa-forte);
  background: rgba(255, 255, 255, .75); color: var(--texto); transition: transform .1s;
}
.criar-rotina:active { transform: scale(.98); }
.criar-rotina strong { display: block; font-family: var(--titulo); font-weight: 600; font-size: 1.1rem; color: var(--rosa-escuro); }
.criar-rotina .tile-emoji { width: 50px; height: 50px; font-size: 1.5rem; flex: none; }
.emojis { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 14px; }
.emoji-opcao {
  width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid transparent; background: var(--lilas-claro);
  font-size: 1.25rem; display: grid; place-items: center; transition: transform .1s;
}
.emoji-opcao.ativo { background: #fff; border-color: var(--rosa-forte); transform: scale(1.1); }
.rotulo-campo .dica { font-weight: 500; margin-left: 6px; }
.aviso-editavel {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .75);
  border: 2px solid var(--rosa-claro); color: var(--texto); font-weight: 500; font-size: .92rem; line-height: 1.4;
}
.modal-caixa .aviso-editavel { background: var(--rosa-claro); border-color: transparent; margin-bottom: 16px; }
.botoes-empilhados { display: flex; flex-direction: column; gap: 14px; }
.lista-passos { margin: 16px 0 20px; padding-left: 26px; line-height: 2; font-weight: 500; }
.lista-passos li::marker { color: var(--rosa-forte); font-weight: 600; }

/* ---------- conquistas ---------- */
.semana { display: flex; justify-content: space-between; padding: 14px 16px; }
.dia {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 600; background: var(--lilas-claro); color: var(--texto-suave);
}
.dia.usado { background: var(--rosa-claro); }
.dia.usado .peixe-svg { width: 22px; height: 22px; }
.dia.hoje { outline: 2.5px solid var(--lilas-forte); outline-offset: 2px; }
.lista-desafios { padding: 4px 16px; }
.desafio-linha { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 2px dashed var(--lilas-claro); }
.desafio-linha:last-child { border-bottom: 0; }
.desafio-linha.resgatado { opacity: .55; }
.desafio-icone { font-size: 1.5rem; flex: none; }
.desafio-meio { flex: 1; min-width: 0; }
.desafio-texto { font-weight: 600; font-size: .93rem; }
.desafio-fim { font-family: var(--titulo); font-weight: 600; font-size: .95rem; color: var(--texto-suave); flex: none; }
.feito-icone { color: #2A7350; font-size: 1.2rem; }
.barra { height: 8px; background: var(--lilas-claro); border-radius: 999px; overflow: hidden; }
.barra.fina { height: 8px; margin-top: 7px; }
.barra span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--rosa-forte), var(--lilas-forte)); transition: width .5s;
}
.album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.medalha {
  background: #fff; border: 3px solid #fff; border-radius: 22px; padding: 8px 0; box-shadow: var(--sombra-leve);
  display: grid; place-items: center; aspect-ratio: 1; transition: transform .1s;
}
.medalha:active { transform: scale(.94); }
.medalha-icone {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--lilas-claro); color: #BFB2DA; font-family: var(--titulo); font-weight: 500;
}
.medalha.tem { background: linear-gradient(180deg, #fff, var(--papel)); }
.medalha.tem .medalha-icone {
  background: linear-gradient(135deg, var(--rosa), var(--lilas));
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rosa-forte);
}
.rodape-links { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; }

/* ---------- navegação flutuante ---------- */
.nav {
  position: fixed; z-index: 10; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 496px; margin: 0 auto; display: flex; gap: 4px; padding: 6px;
  background: rgba(255, 255, 255, .95); border-radius: 28px; border: 2px solid #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(var(--lilas-escuro-rgb), .18);
}
.nav button {
  flex: 1; background: none; border: 0; border-radius: 22px; padding: 7px 4px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--titulo); font-weight: 600; font-size: .82rem; color: var(--texto-suave); transition: background .15s;
}
.nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav button[aria-current="page"] { background: var(--rosa-claro); color: var(--rosa-escuro); }
.nav button[aria-current="page"] svg { fill: rgba(var(--rosa-forte-rgb), .22); animation: pulo .45s cubic-bezier(.3, 1.6, .5, 1); }

/* ---------- janelas (modal) ---------- */
#modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; }
.modal-fundo { position: absolute; inset: 0; background: rgba(61, 44, 92, .45); animation: aparecer .2s; }
.modal-caixa {
  position: relative; background: #fff; border-radius: 30px; padding: 24px; width: 100%; border: 3px solid var(--rosa-claro);
  max-width: 420px; max-height: 90vh; overflow: auto; animation: surgir .35s cubic-bezier(.2, 1.4, .4, 1);
}
.modal-caixa h2 { margin: 0 0 12px; font-weight: 600; }
@keyframes surgir { from { transform: scale(.85) translateY(20px); opacity: 0; } }
@keyframes aparecer { from { opacity: 0; } }
.modal-centro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.modal-centro h2 { margin: 2px 0 0; }
.modal-centro p { margin: 0 0 4px; line-height: 1.45; }
.modal-centro .btn { margin-top: 8px; }
.modal-centro .foquinha { width: 150px; height: 130px; }
.medalha-palco { position: relative; width: 170px; height: 140px; display: grid; place-items: center; }
.raios, .festa-raios {
  position: absolute; border-radius: 50%;
  background: repeating-conic-gradient(rgba(247, 201, 220, .8) 0 12deg, transparent 12deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  animation: girar-lento 10s linear infinite;
}
.raios { inset: -30px; }
@keyframes girar-lento { to { transform: rotate(360deg); } }
.medalha-grande {
  position: relative; font-size: 3rem; width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rosa), var(--lilas)); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--rosa-forte);
  animation: girar-entra .8s cubic-bezier(.2, 1.3, .4, 1);
}
.medalha-grande.bloqueada { background: var(--lilas-claro); color: #BFB2DA; animation: none; box-shadow: none; font-family: var(--titulo); }
@keyframes girar-entra { from { transform: rotate(-200deg) scale(.2); } }
.destaque { display: flex; align-items: center; gap: 6px; font-family: var(--titulo); font-weight: 500; font-size: 1.6rem; color: var(--rosa-escuro); }
.destaque .peixe-svg { width: 30px; height: 30px; }
.modal-acoes { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 8px; }
.rotulo-campo { font-weight: 600; font-size: .85rem; color: var(--texto-suave); margin: 16px 0 8px; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.campo { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .85rem; color: var(--texto-suave); margin-bottom: 12px; flex: 1; }
.campo-linha { display: flex; gap: 12px; }
.campo-texto, .campo input, .editor-passos input {
  border: 2px solid var(--lilas-borda); border-radius: 16px; padding: 13px 14px; font-size: 1.05rem; outline: none;
  background: var(--lilas-claro); width: 100%; font-weight: 500;
}
.campo-texto:focus, .campo input:focus, .editor-passos input:focus { border-color: var(--lilas-forte); background: #fff; }
.editor-passos { padding-left: 22px; margin: 0 0 8px; }
.editor-passos li { margin-bottom: 6px; }
.editor-linha { display: flex; gap: 4px; align-items: center; }
.editor-passos input { padding: 9px 12px; border-radius: 12px; font-size: 1rem; }
.apagar {
  background: none; border: 0; font-size: 1.4rem; line-height: 1; color: #BFB2DA;
  padding: 4px 8px; border-radius: 10px; flex: none;
}
.apagar:hover { color: var(--rosa-escuro); background: var(--rosa-claro); }

/* ---------- festa (tela cheia de comemoração) ---------- */
#festa {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle, rgba(var(--rosa-forte-rgb), .55), rgba(61, 44, 92, .6));
  animation: aparecer .2s; transition: opacity .25s;
}
#festa.saindo { opacity: 0; }
.festa-raios { width: 760px; height: 760px; left: 50%; top: 50%; margin: -380px 0 0 -380px; background: repeating-conic-gradient(rgba(255, 255, 255, .5) 0 10deg, transparent 10deg 30deg); }
.festa-conteudo { position: relative; text-align: center; animation: surgir .5s cubic-bezier(.2, 1.5, .4, 1); }
.festa-foca { width: 220px; height: 190px; margin: 0 auto; }
.festa-titulo {
  margin: 6px 0 4px; font-family: var(--titulo); font-weight: 500; font-size: 2.4rem; color: #fff;
  text-shadow: 0 3px 0 var(--rosa-escuro), 0 6px 18px rgba(61, 44, 92, .35);
}
.festa-sub {
  display: inline-block; margin: 0; background: #fff; color: var(--rosa-escuro); font-family: var(--titulo);
  font-weight: 600; font-size: 1.15rem; padding: 6px 18px; border-radius: 999px;
}

/* ---------- efeitos: peixinhos voando e confete ---------- */
#efeitos { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.flutua {
  position: absolute; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: center;
  background: #fff; color: var(--rosa-escuro); border: 2px solid var(--rosa-claro);
  font-family: var(--titulo); font-weight: 500; font-size: 1.3rem; padding: 4px 12px; border-radius: 999px;
  box-shadow: var(--sombra); max-width: 160px;
  animation: voar-pontos 1.25s cubic-bezier(.3, .7, .4, 1) forwards;
}
.flutua small { width: 100%; font-size: .72rem; text-align: center; line-height: 1; margin-top: -2px; }
.flutua.dourada { background: linear-gradient(180deg, #FFF6D1, #FFD86B); color: #8A5A00; border-color: #FFE9A3; }
@keyframes voar-pontos {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  18% { transform: translate(-50%, -120%) scale(1.2); opacity: 1; }
  48% { transform: translate(-50%, -150%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.3); opacity: .2; }
}
.confete { position: absolute; animation: voar 1s ease-out forwards; }
.confete.emoji { font-size: 1.3rem; }
.confete.bolinha, .chuva.bolinha { width: 10px; height: 10px; border-radius: 50%; }
.confete.quadrado, .chuva.quadrado { width: 9px; height: 13px; border-radius: 3px; }
@keyframes voar { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
.chuva { position: absolute; top: -20px; animation: cair linear forwards; }
@keyframes cair { to { transform: translateY(110vh) rotate(var(--r)); } }

/* ---------- avisos ---------- */
.toasts {
  position: fixed; top: calc(env(safe-area-inset-top) + 64px); left: 0; right: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
.toast {
  background: var(--texto); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-weight: 600; box-shadow: var(--sombra); animation: entrar .3s cubic-bezier(.2, 1.4, .4, 1); max-width: 90vw; text-align: center;
}
.toast.saindo { opacity: 0; transform: translateY(-8px); transition: .3s; }
@keyframes entrar { from { opacity: 0; transform: translateY(-10px) scale(.9); } }

/* =========================================================
   Revisão de UX: painel "Seu dia", ajustes, medalhas e computador
   ========================================================= */

/* Botão "+" encaixado ao lado da barra de navegação: nunca cobre conteúdo e está em todas as abas */
.nav { right: 86px; }
.fab { right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 64px; height: 64px; z-index: 11; }
body.deslogada .fab { display: none !important; }

/* Links pequenos com área de toque confortável (mínimo ~44px) */
.agora-links .link, .convite-acoes .link { padding: 10px 6px; }

/* ---------- painel "Seu dia" ---------- */
.coluna-lateral { margin-top: 22px; }
.painel-dia { display: flex; flex-direction: column; gap: 10px; }
.titulo-painel {
  margin: 0 0 2px 4px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-suave);
  font-family: var(--texto-fonte);
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 78px;
  padding: 10px 6px; border-radius: 20px; border: 2px solid #fff; background: rgba(255, 255, 255, .85);
  box-shadow: var(--sombra-leve); text-align: center; color: var(--texto);
}
button.stat:not(:disabled):active { transform: scale(.96); }
.stat:disabled { cursor: default; opacity: 1; }
.stat[aria-expanded="true"] { border-color: var(--rosa-forte); }
.stat-num { display: flex; align-items: center; gap: 2px; font-family: var(--titulo); font-weight: 500; font-size: 1.55rem; line-height: 1.1; color: var(--rosa-escuro); }
.stat-num small { font-size: .9rem; color: var(--texto-suave); font-weight: 600; }
.stat-num .peixe-svg { width: 20px; height: 20px; }
.stat-rot { font-size: .72rem; font-weight: 600; color: var(--texto-suave); line-height: 1.2; }
.fila-feitas { margin: 0; }
.linha-painel {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; text-align: left;
  border-radius: 20px; border: 2px solid #fff; background: rgba(255, 255, 255, .85); box-shadow: var(--sombra-leve);
  font-weight: 600; color: var(--texto);
}
.linha-painel .linha-corpo { white-space: normal; display: flex; flex-direction: column; gap: 6px; padding: 0; }
.linha-painel .barra { width: 100%; }
.desafio-destaque .desafio-texto { font-size: .9rem; }
.desafio-destaque.pronto { border-color: var(--rosa-forte); background: linear-gradient(90deg, var(--papel), #fff); }
.desafio-destaque.pronto strong { color: var(--rosa-escuro); }
.desafio-destaque.completo { justify-content: center; color: #2A7350; }
.ver-fila.linha-painel { margin: 0; border-style: solid; color: var(--texto); }
.titulo-fila { display: none; }
.fila-hoje { margin: 0; }
.fila-hoje:not(.aberta) { display: none; }

/* ---------- botão de ajustes no topo ---------- */
.ponto-alerta {
  display: none; position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rosa-forte); border: 2px solid #fff;
}
#btn-ajustes.com-alerta .ponto-alerta { display: block; }
body.deslogada #btn-ajustes { display: none !important; }

/* ---------- janela de ajustes ---------- */
.lista-ajustes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ajuste {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px;
  border: 0; border-radius: 18px; background: var(--lilas-claro); text-align: left;
}
.ajuste:active { transform: scale(.98); }
.ajuste-icone { font-size: 1.4rem; width: 32px; text-align: center; flex: none; }
.ajuste-texto { flex: 1; display: flex; flex-direction: column; }
.ajuste-texto strong { font-family: var(--titulo); font-weight: 600; font-size: 1.05rem; }
.ajuste-texto small { font-size: .82rem; color: var(--texto-suave); font-weight: 500; }
.ajuste[data-alerta] .ajuste-texto small { color: var(--rosa-escuro); }
.ajuste-seta { font-size: 1.5rem; color: var(--texto-suave); }
.interruptor {
  position: relative; width: 46px; height: 28px; border-radius: 999px; background: #CFC5E3; flex: none; transition: background .2s;
}
.interruptor::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s;
}
.interruptor.ligado { background: var(--rosa-forte); }
.interruptor.ligado::after { transform: translateX(18px); }
.ajustes .conta-info { margin-bottom: 16px; padding: 12px; border-radius: 18px; border: 2px dashed var(--lilas); }

/* ---------- medalhas ---------- */
.medalha { position: relative; }
.medalha:not(.tem) .medalha-icone { filter: grayscale(1); opacity: .38; background: var(--lilas-claro); }
.cadeado { position: absolute; right: 8px; bottom: 6px; font-size: .75rem; opacity: .7; }
.medalha-grande.bloqueada { filter: grayscale(1); opacity: .5; font-size: 3rem; }
.proxima-medalha {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 8px; text-align: left; border: 3px solid #fff;
  background: linear-gradient(120deg, #fff, var(--papel));
}
.proxima-medalha.completo { justify-content: center; font-weight: 600; }
.proxima-texto { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.proxima-texto strong { font-family: var(--titulo); font-size: 1.15rem; font-weight: 600; }
.proxima-texto .barra { width: 100%; margin-top: 4px; }
.grande-icone { width: 62px; height: 62px; font-size: 1.9rem; flex: none; filter: grayscale(.6); }
.progresso-medalha { width: 220px; display: flex; flex-direction: column; gap: 6px; align-items: center; margin-bottom: 4px; }
.progresso-medalha .barra { width: 100%; }

/* ---------- computador e tablet ---------- */
@media (min-width: 640px) {
  .grade-tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .topo-dentro { max-width: 1060px; padding-left: 28px; padding-right: 28px; }
  .conteudo { max-width: 1060px; padding: 12px 28px 140px; }
  .marca { font-size: 2rem; }

  /* Hoje: Foquinha e "Agora" à esquerda, painel do dia e fila sempre visível à direita */
  .layout-hoje { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
  .layout-hoje .coluna-principal { max-width: 560px; width: 100%; justify-self: center; }
  .layout-hoje .coluna-lateral { position: sticky; top: 92px; margin-top: 24px; }
  .cena-foca { width: 180px; height: 155px; }
  .agora { padding: 56px 32px 28px; }
  .agora-titulo { font-size: 2rem; }
  .ver-fila.linha-painel { display: none; }
  .titulo-fila { display: flex; align-items: center; gap: 8px; margin: 8px 0 0 4px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-suave); font-family: var(--texto-fonte); }
  .fila-hoje, .fila-hoje:not(.aberta) { display: flex; }

  /* Rotinas */
  .grade-tiles { grid-template-columns: repeat(4, 1fr); }
  .secao > .fila { display: grid; grid-template-columns: repeat(2, 1fr); }
  .criar-rotina { max-width: 520px; }

  /* Conquistas: progresso à esquerda, álbum à direita */
  .layout-conquistas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .layout-conquistas .coluna-lateral { margin-top: 8px; }

  /* Barra centralizada com o "+" encostado à direita dela */
  .nav { max-width: 440px; left: 0; right: 76px; }
  .fab { right: calc(50% - 258px); bottom: 12px; }
}

/* =========================================================
   Foquinha 2.0: barriguinha, carinho, Lojinha, modo foco, medalhas
   ========================================================= */

/* Contador de peixinhos virou botão (leva para a Lojinha) */
button.peixes { border: 2px solid var(--rosa-claro); cursor: pointer; color: var(--texto); }
button.peixes:active { transform: scale(.95); }

/* Navegação com 4 abas */
.nav button { font-size: .76rem; padding-left: 2px; padding-right: 2px; }
.nav svg { width: 24px; height: 24px; }

/* ---------- cena: Foquinha + barriguinha ---------- */
.cena-palco { position: relative; width: 100%; display: flex; justify-content: center; }
.cena-foca { touch-action: none; user-select: none; -webkit-user-select: none; }
.barriguinha {
  position: absolute; right: 0; top: 18px; width: 88px; display: flex; flex-direction: column; gap: 5px; align-items: stretch;
  padding: 8px 10px; border-radius: 18px; border: 2px solid #fff; background: rgba(255, 255, 255, .88);
  box-shadow: var(--sombra-leve); text-align: center; color: var(--texto);
}
.barriguinha:active { transform: scale(.95); }
.barriga-rotulo { font-size: .68rem; font-weight: 600; color: var(--texto-suave); letter-spacing: .02em; }
.barriguinha .barra { height: 7px; }
.barriguinha.vazia { border-color: var(--rosa-forte); animation: chamar 2.4s ease-in-out infinite; }
.barriguinha.vazia .barga-rotulo, .barriguinha.vazia .barriga-rotulo { color: var(--rosa-escuro); }
.barriguinha.cheia .barra span { background: linear-gradient(90deg, #7ED3A8, #4FB98B); }
@keyframes chamar { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-4deg); } 86% { transform: rotate(4deg); } }
.barriga-acao { display: flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--titulo); font-size: .95rem; }
.barriga-acao .peixe-svg { width: 18px; height: 18px; }
.barriga-acao small { font-family: var(--texto-fonte); font-size: .68rem; color: var(--texto-suave); }

/* Comendo: mastiga 4 vezes, o rabinho do peixe some e aparece "nham!" */
.humor-comendo svg, .mastigando svg { animation: mastigar .17s ease-in-out 4; transform-origin: 50% 95%; }
@keyframes mastigar { 50% { transform: scale(1.05, .93); } }
.peixe-boca { transform-box: fill-box; transform-origin: 0% 50%; animation: engolir .75s ease-in forwards; }
@keyframes engolir { 70% { transform: scale(.55); } 100% { transform: scale(0); opacity: 0; } }
.migalhas { animation: migalhas .9s ease-out forwards; }
@keyframes migalhas { from { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(8px); opacity: 0; } }
.texto-nham {
  position: absolute; transform: translate(-50%, -50%); font-family: var(--titulo); font-weight: 700; font-size: 1.1rem;
  color: var(--rosa-escuro); text-shadow: 0 2px 0 #fff; pointer-events: none; animation: nham .9s ease-out forwards;
}
@keyframes nham { 0% { transform: translate(-50%, -30%) scale(.4); opacity: 0; } 25% { transform: translate(-50%, -80%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -160%) scale(1); opacity: 0; } }

/* Reações ao toque */
.reage-pulo svg { animation: r-pulo .6s cubic-bezier(.3, 1.6, .5, 1); }
.reage-giro svg { animation: r-giro .7s ease-in-out; }
.reage-esmaga svg { animation: r-esmaga .5s ease-in-out; transform-origin: 50% 95%; }
.reage-balanca svg { animation: r-balanca .7s ease-in-out; transform-origin: 50% 95%; }
.reage-treme svg { animation: r-treme .5s linear; }
@keyframes r-pulo { 40% { transform: translateY(-26px) scale(1.04); } 70% { transform: translateY(0) scale(1.06, .94); } }
@keyframes r-giro { to { transform: rotate(360deg); } }
@keyframes r-esmaga { 30% { transform: scale(1.18, .78); } 60% { transform: scale(.9, 1.12); } }
@keyframes r-balanca { 20% { transform: rotate(-10deg); } 45% { transform: rotate(9deg); } 70% { transform: rotate(-5deg); } }
@keyframes r-treme { 10%, 30%, 50%, 70%, 90% { transform: translateX(-4px) rotate(-2deg); } 20%, 40%, 60%, 80% { transform: translateX(4px) rotate(2deg); } }
.coracao-voando { position: absolute; font-size: 1.4rem; pointer-events: none; animation: subir-coracao 1.2s ease-out forwards; }
@keyframes subir-coracao { to { transform: translate(var(--dx), -90px) scale(1.3); opacity: 0; } }
.peixe-voando { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; animation: peixe-voa .65s cubic-bezier(.4, .1, .6, 1) forwards; }
.peixe-voando .peixe-svg { width: 30px; height: 30px; }
@keyframes peixe-voa {
  50% { transform: translate(calc(var(--tx) * .5), calc(var(--ty) * .5 - 60px)) rotate(-200deg) scale(1.2); }
  100% { transform: translate(var(--tx), var(--ty)) rotate(-360deg) scale(.4); opacity: .2; }
}

/* ---------- Lojinha ---------- */
.layout-lojinha { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.vitrine { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(120deg, #fff, var(--papel)); border: 3px solid #fff; }
.vitrine-foca { width: 128px; height: 115px; flex: none; }
.vitrine-info h2 { margin: 0; font-size: 1.5rem; color: var(--rosa-escuro); }
.saldo { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: 1rem; }
.saldo strong { font-family: var(--titulo); font-size: 1.5rem; color: var(--rosa-escuro); }
.saldo .peixe-svg { width: 26px; height: 26px; }
.abas-lojinha { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: var(--sombra-leve); }
.abas-lojinha button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 10px; font-family: var(--titulo); font-size: 1rem; color: var(--texto-suave); }
.abas-lojinha button[aria-selected="true"] { background: var(--rosa-forte); color: #fff; box-shadow: 0 3px 0 var(--rosa-escuro); }
.grade-loja { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.item-loja {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px;
  border-radius: 22px; border: 3px solid #fff; background: rgba(255, 255, 255, .88); box-shadow: var(--sombra-leve); color: var(--texto);
}
.item-loja:active { transform: scale(.96); }
.item-loja.usando { border-color: var(--rosa-forte); background: var(--papel); }
.item-loja.raro { background: linear-gradient(160deg, #FFFBEA, #fff 60%); }
.item-loja.raro.usando { border-color: #E2B23A; }
.item-preview { width: 100%; height: 74px; display: grid; place-items: center; }
.item-preview svg { width: 100%; height: 100%; }
.item-nome { font-family: var(--titulo); font-size: .95rem; line-height: 1.15; text-align: center; }
.item-preco { display: flex; align-items: center; gap: 3px; font-size: .82rem; font-weight: 600; color: var(--rosa-escuro); }
.item-preco .peixe-svg { width: 18px; height: 18px; }
.item-preco.caro { color: var(--texto-suave); opacity: .75; }
.item-loja.usando .item-preco { color: #2A7350; }
.selo-raro {
  position: absolute; top: -8px; right: 8px; font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(90deg, #FFD86B, #F5B83A); color: #6B4A00; box-shadow: 0 2px 6px rgba(181, 132, 0, .3);
}
.selo-raro.solto { position: static; }
.tema-amostra { display: flex; height: 74px; align-items: center; justify-content: center; }
.tema-amostra span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; margin-left: -8px; box-shadow: var(--sombra-leve); }
.tema-amostra.grande span { width: 54px; height: 54px; margin-left: -12px; }
.modal-centro .foquinha.provador { width: 170px; height: 150px; }

/* ---------- modo foco ---------- */
#foco {
  position: fixed; inset: 0; z-index: 35; overflow: auto;
  background: linear-gradient(180deg, var(--fundo-2), var(--fundo-1) 60%, var(--fundo-3));
  animation: aparecer .3s;
}
body.focando .nav, body.focando .fab { display: none !important; }
.foco-tela {
  min-height: 100%; max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 24px) 20px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative;
}
.foco-sair { position: absolute; top: calc(env(safe-area-inset-top) + 18px); right: 20px; }
.foco-titulo { margin: 4px 0 6px; font-size: 1.5rem; line-height: 1.2; max-width: 90%; overflow-wrap: anywhere; }
.foco-relogio { position: relative; width: 230px; height: 230px; }
.foco-relogio svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anel-fundo { fill: rgba(255, 255, 255, .7); stroke: var(--lilas-claro); stroke-width: 8; }
.anel { fill: none; stroke: var(--rosa-forte); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.foco-tempo {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--titulo); font-size: 3.4rem;
  color: var(--rosa-escuro); font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.foco-foca { width: 170px; height: 150px; margin-top: -10px; }
.foco-foca svg { animation: estudar 4s ease-in-out infinite; }
@keyframes estudar { 50% { transform: rotate(2deg) translateY(-2px); } }
.foco-fala { margin: 0; padding: 10px 18px; border-radius: 20px; background: #fff; box-shadow: var(--sombra-leve); font-weight: 500; min-height: 44px; }
.foco-botoes { display: flex; gap: 12px; align-items: center; margin-top: 10px; }

.campo-minutos { margin-top: -2px; }
.minutos-linha { display: flex; align-items: center; gap: 8px; }
.minutos-linha input { max-width: 110px; text-align: center; font-family: var(--titulo); font-size: 1.3rem; }
.minutos-linha span { font-size: 1rem; color: var(--texto-suave); }

/* ---------- medalhas desenhadas ---------- */
.medalha-arte { display: block; width: 100%; height: 100%; }
.medalha-arte svg { width: 100%; height: 100%; overflow: visible; }
.medalha { padding: 6px 4px 2px; }
.medalha .medalha-arte { width: 64px; height: 75px; }
.medalha:not(.tem) .medalha-arte { filter: grayscale(1); opacity: .35; }
.medalha.tem .medalha-arte { filter: drop-shadow(0 3px 4px rgba(var(--rosa-escuro-rgb), .25)); }
.medalha-palco .medalha-arte { position: relative; width: 120px; height: 140px; }
.medalha-arte.entra { animation: girar-entra .8s cubic-bezier(.2, 1.3, .4, 1); }
.medalha-arte.bloqueada { filter: grayscale(1); opacity: .45; }
.proxima-arte { width: 58px; height: 68px; flex: none; filter: grayscale(.85); opacity: .7; }
.mock-medalhas span { width: 64px; height: 75px; border-radius: 0; box-shadow: none; background: none; font-size: 0; }
.mock-medalhas span svg { width: 100%; height: 100%; }
.largura-media { width: 100%; max-width: 260px; }

/* ---------- guia: campo do nome ---------- */
.campo-nome-guia { max-width: 280px; text-align: center; font-size: 1.15rem; margin-top: 6px; }

@media (min-width: 900px) {
  .layout-lojinha { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; gap: 24px; }
  .layout-lojinha .vitrine { grid-row: span 2; flex-direction: column; text-align: center; position: sticky; top: 92px; }
  .vitrine-foca { width: 230px; height: 205px; }
  .saldo { justify-content: center; }
  .grade-loja { grid-template-columns: repeat(3, 1fr); }
  .nav { max-width: 480px; right: 76px; }
  .fab { right: calc(50% - 278px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #bolhas { display: none; }
}
