/*
 * Estalo — visual "cartaz": breu, osso e UM vermelho (a brasa do logo).
 * Gancho em letra de cartaz (Anton), corpo em serifa de livro (Literata),
 * rótulos e botões em Archivo. A brasa marca só o que é ação ou a palavra-estalo.
 */

@font-face { font-family: "Anton"; src: url("../fontes/anton-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fontes/literata-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fontes/literata-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fontes/archivo-normal.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --breu: #0b0a09;
  --carta: #181513;
  --carvao: #161311;
  --carvao-2: #1f1b18;
  --fuligem: #2e2824;
  --osso: #ece2cb;
  --osso-2: #cdc2ab;
  --po: #9a8f7a;
  --brasa: #fe3d22;
  --f-cartaz: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-livro: "Literata", Georgia, "Times New Roman", serif;
  --f-util: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --seg-topo: env(safe-area-inset-top, 0px);
  --seg-baixo: env(safe-area-inset-bottom, 0px);
  --topo: calc(48px + var(--seg-topo));
  --abas: calc(56px + var(--seg-baixo));
  --lado: 22px;
  --raio: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; background: #050504; color: var(--osso); }

body {
  font-family: var(--f-util);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

button, a { font: inherit; color: inherit; }
button { -webkit-appearance: none; appearance: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brasa); outline-offset: 2px; border-radius: 4px; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- casca ---------- */

.app {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0;
  margin: 0 auto; max-width: 520px;
  display: flex; flex-direction: column;
  background: var(--breu);
  isolation: isolate;
  overflow: hidden;
}

/* grão de papel + vinheta, atrás de tudo */
.app::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% 38%, transparent 52%, rgba(0, 0, 0, .55) 100%),
    url("../img/grao.png") 0 0 / 96px 96px;
}

.telas { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; }

.tela { position: absolute; inset: 0; visibility: hidden; z-index: 0; }
.tela.ativa { visibility: visible; z-index: 1; }
.tela-rola { overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }

/* ---------- abas ---------- */

.abas {
  position: relative; z-index: 2;
  flex: 0 0 var(--abas);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: var(--seg-baixo);
  background: rgba(11, 10, 9, .97);
  border-top: 1px solid var(--fuligem);
}
.aba {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--po); text-decoration: none;
  font: 600 11px/1 var(--f-util); letter-spacing: .02em;
}
.aba .ico { width: 22px; height: 22px; }
.aba--on { color: var(--osso); }
.aba--on::before {
  content: ""; position: absolute; top: -1px; left: 33%; right: 33%;
  height: 2px; background: var(--brasa); border-radius: 0 0 2px 2px;
}
body[data-tela="entrada"] .abas { display: none; }

/* ---------- mascote ---------- */

.mascote { display: block; overflow: visible; }
.m-corpo { fill: var(--brasa); stroke: var(--brasa); stroke-width: 10; stroke-linejoin: round; }
.m-olhos ellipse { fill: var(--breu); }
.m-olhos--arco path, .m-olhos--sono path { fill: none; stroke: var(--breu); stroke-width: 7.5; stroke-linecap: round; }
.mascote--apagado .m-corpo { fill: #5c2e24; stroke: #5c2e24; }
.m-olhos { transform-box: fill-box; transform-origin: center; }
.mascote--normal .m-olhos, .mascote--surpreso .m-olhos { animation: piscar 5.2s infinite; }
@keyframes piscar {
  0%, 91%, 100% { transform: scaleY(1); }
  93.5% { transform: scaleY(.08); }
  96% { transform: scaleY(1); }
}

/* ---------- capa tipográfica ---------- */

.capa {
  position: relative; display: block; flex: none;
  aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: 3px 5px 5px 3px;
  background: var(--carvao);
  box-shadow: inset 3px 0 0 rgba(0, 0, 0, .35), inset 0 0 0 1px var(--fuligem);
  container-type: inline-size;
}
.capa-forma { position: absolute; inset: 0; }
.capa-forma::before, .capa-forma::after { content: ""; position: absolute; }
.capa-autor {
  position: absolute; left: 9%; right: 9%; top: 8%;
  font: 600 10px/1.15 var(--f-util); font-size: 6.4cqi;
  letter-spacing: .12em; text-transform: uppercase; color: var(--po);
}
.capa-titulo {
  position: absolute; left: 9%; right: 9%; bottom: 8%;
  font: 400 18px/.95 var(--f-cartaz); font-size: 13.5cqi;
  text-transform: uppercase; color: var(--osso);
  text-wrap: balance; overflow-wrap: break-word;
}
.capa--longa .capa-titulo { font-size: 10.4cqi; line-height: .98; }
.capa--mini { width: 20px; border-radius: 2px 3px 3px 2px; }
/* na capinha só fica o símbolo, maior e no meio */
.capa--mini .capa-forma { transform-origin: 50% 40%; transform: translateY(10%) scale(1.45); }
.capa--mini.capa--sol .capa-forma::before { right: 17%; }
.capa--mini.capa--sol .capa-forma::after { display: none; }

/* formas (uma por livro), sempre entre 19% e 60% da altura:
   o nome do autor fica em cima e o título embaixo */
.capa--sol .capa-forma::before { width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--brasa); right: -12%; top: 19%; }
.capa--sol .capa-forma::after { left: 9%; right: 9%; top: 52%; height: 1.4%; background: var(--osso); opacity: .45; }

.capa--raio .capa-forma::before {
  width: 46%; height: 42%; left: 28%; top: 19%; background: var(--brasa);
  clip-path: polygon(58% 0, 12% 56%, 44% 56%, 28% 100%, 88% 38%, 56% 38%, 78% 0);
}

.capa--espinhos .capa-forma::before {
  width: 120%; height: 46%; left: -10%; top: 14%;
  background: repeating-conic-gradient(from 270deg at 50% 100%, var(--brasa) 0 2.6deg, transparent 2.6deg 9deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, #000 0 66%, transparent 67%);
  mask: radial-gradient(circle at 50% 100%, #000 0 66%, transparent 67%);
}

.capa--ondas .capa-forma::before {
  left: 10%; right: 10%; top: 21%; height: 32%;
  background: repeating-linear-gradient(90deg, var(--brasa) 0 6.5%, transparent 6.5% 13%);
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0 96%, transparent 100%);
  mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0 96%, transparent 100%);
}

.capa--eclipse .capa-forma::before { width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--brasa); left: 21%; top: 21%; }
.capa--eclipse .capa-forma::after { width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--carvao); left: 35%; top: 17%; }

.capa--caverna .capa-forma::before { left: 15%; right: 15%; top: 19%; height: 39%; background: var(--brasa); border-radius: 999px 999px 0 0; }
.capa--caverna .capa-forma::after { left: 31%; right: 31%; top: 32%; height: 26%; background: var(--carvao); border-radius: 999px 999px 0 0; }

.capa--coroa .capa-forma::before {
  left: 13%; right: 13%; top: 22%; height: 28%; background: var(--brasa);
  clip-path: polygon(0 100%, 0 18%, 25% 58%, 50% 0, 75% 58%, 100% 18%, 100% 100%);
}

.capa--escada .capa-forma::before {
  left: 12%; right: 12%; top: 19%; height: 39%; background: var(--brasa);
  clip-path: polygon(0 100%, 0 75%, 25% 75%, 25% 50%, 50% 50%, 50% 25%, 75% 25%, 75% 0, 100% 0, 100% 100%);
}

.capa--aneis .capa-forma::before,
.capa--aneis .capa-forma::after { width: 44%; aspect-ratio: 1; border-radius: 50%; top: 22%; border: 4.6cqi solid var(--brasa); }
.capa--aneis .capa-forma::before { left: 12%; }
.capa--aneis .capa-forma::after { left: 42%; border-color: var(--osso); opacity: .85; }

.capa--ampulheta .capa-forma::before {
  left: 27%; right: 27%; top: 19%; height: 40%; background: var(--brasa);
  clip-path: polygon(0 0, 100% 0, 54% 50%, 100% 100%, 0 100%, 46% 50%);
}

/* ---------- feed ---------- */

/* o palco do monte de cartas: sem rolagem do navegador; quem move as cartas é o dedo
   (touch-action: none) e, ao soltar, uma animação de GPU */
.feed {
  position: absolute; inset: 0; z-index: 0; isolation: isolate;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  background: radial-gradient(120% 75% at 50% 35%, #100e0c, #040303 72%);
  -webkit-user-select: none; user-select: none;
  outline: none;
}
.colecoes::-webkit-scrollbar { display: none; }

.estalo {
  --esc: 1;
  position: absolute; inset: 0;
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.estalo.e-topo { pointer-events: auto; }

/* a carta: cada estalo é uma carta solta sobre a mesa preta, com borda e sombra.
   Embaixo dela ficam as próximas (o monte), descendo 9 px cada e sobrando a borda.
   É uma camada de GPU fixa (will-change): mexer nela não redesenha nada. */
.folha {
  position: absolute; top: calc(var(--topo) + 2px); left: 8px; right: 8px; bottom: 20px;
  display: flex; flex-direction: column;
  padding-top: 12px;
  border-radius: 26px;
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(236, 226, 203, .06), rgba(236, 226, 203, 0) 62%),
    url("../img/grao.png") 0 0 / 96px 96px,
    var(--carta);
  box-shadow: inset 0 0 0 1px rgba(236, 226, 203, .11), 0 26px 46px -20px rgba(0, 0, 0, .95);
  transform-origin: 50% 100%;
  will-change: transform;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
/* a sombra das cartas do monte (opacidade animada pela GPU) */
.sombra {
  position: absolute; inset: 1px; z-index: 6; border-radius: inherit;
  background: #030202; pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

/* tela baixa (iPhone SE no Safari, Android pequeno): moldura mais justa pro texto caber */
@media (max-height: 700px) {
  .folha { top: calc(var(--topo) - 2px); left: 6px; right: 6px; bottom: 13px; padding-top: 9px; border-radius: 22px; }
  .estalo-miolo { padding: 0 15px; }
  .trilha-livro { margin-bottom: 8px; }
  .acoes { height: 44px; padding-bottom: 2px; }
}

.estalo-miolo {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 2px 18px 0;
}

/* posição no livro, em segmentos (como stories): lidos em osso, o atual em brasa */
.trilha-livro { flex: none; display: flex; gap: 4px; margin: 0 0 11px; }
.trilha-livro i { flex: 1; height: 3px; border-radius: 2px; background: var(--fuligem); }
.trilha-livro i.lido { background: rgba(236, 226, 203, .42); }
.trilha-livro i.atual { background: var(--brasa); }

.cabeco {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 4px;
  font: 500 12.5px/1.2 var(--f-util); color: var(--po);
}
.cabeco-txt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cabeco-txt b { font-weight: 600; color: var(--osso); }
.folio {
  flex: none; display: inline-flex; align-items: center; gap: 1px;
  font-weight: 600; font-variant-numeric: tabular-nums; color: var(--osso-2);
}
.folio-seta .ico { width: 14px; height: 14px; stroke: var(--brasa); stroke-width: 2.6; margin-left: 2px; }

.estalo-texto { margin-block: auto; padding: calc(16px * var(--esc)) 0 calc(12px * var(--esc)); }

/* a ilustração do estalo: fundo transparente, só osso e brasa direto sobre a carta.
   Altura = a menor entre o teto da tela e a largura da carta pela proporção da imagem (--ar),
   pra figura larga não deixar faixa vazia. O caber() encolhe pelo --ilu (até 60%) antes da letra. */
.ilustra {
  margin: 0 0 calc(14px * var(--esc));
  height: calc(var(--ilu, 1) * clamp(112px, 25vh, 212px));
  transform-origin: 50% 70%;
  transition: transform .5s cubic-bezier(.2, .85, .25, 1), opacity .4s ease-out;
}
@supports (container-type: inline-size) {
  .estalo-texto { container-type: inline-size; }
  .ilustra { height: calc(var(--ilu, 1) * min(clamp(112px, 25vh, 212px), 100cqw / var(--ar, 1.6))); }
}
.ilustra img {
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  -webkit-user-drag: none; pointer-events: none;
}
.sem-ilustra .ilustra { display: none; }
.espera .ilustra { opacity: .12; transform: scale(.94); transition: none; }

.tema {
  margin: 0 0 calc(11px * var(--esc));
  font: 600 11px/1 var(--f-util); letter-spacing: .16em; text-transform: uppercase; color: var(--po);
}
.sem-tema .tema { display: none; }

.gancho {
  margin: 0 0 calc(14px * var(--esc));
  font-family: var(--f-cartaz); font-weight: 400;
  font-size: calc(var(--esc) * clamp(29px, 9vw, 44px));
  line-height: 1.05; letter-spacing: .003em;
  color: var(--osso);
  text-wrap: balance;
}
/* as palavras "se imprimem" quando a carta chega: na espera ficam apagadas e baixas;
   ao tirar a classe .espera, uma transição de CSS (GPU) sobe uma a uma */
.gancho .p {
  display: inline-block; white-space: nowrap;
  transform-origin: 0 100%;
  transition: transform .42s cubic-bezier(.2, .85, .25, 1), opacity .3s ease-out;
  transition-delay: calc(var(--i) * 20ms);
}
.espera .gancho .p { opacity: .16; transform: translateY(.32em) rotate(2.5deg); transition: none; }
.medindo, .medindo * { transition: none !important; }
.gancho em { position: relative; display: inline-block; font-style: normal; color: var(--brasa); }
/* o grifo: um traço de caneta embaixo da palavra-estalo, desenhado quando ela estala */
.gancho em::after {
  content: ""; position: absolute; left: .03em; right: .03em; bottom: .01em; height: .075em;
  border-radius: .05em; background: var(--brasa);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .38s .18s cubic-bezier(.3, .8, .2, 1);
}
.grifado .gancho em::after { transform: scaleX(1); }
/* o clarão atrás da palavra (entra junto com os brilhos, dentro da própria palavra) */
.brilhos .clarao {
  position: absolute; left: -.35em; right: -.35em; top: -.3em; bottom: -.3em; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(254, 61, 34, .42), rgba(254, 61, 34, 0));
  opacity: 0;
  animation: clarao .62s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes clarao {
  0% { opacity: 0; transform: scale(.4); }
  22% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.5); }
}
@keyframes pop {
  0% { transform: scale(1); }
  28% { transform: scale(1.26) rotate(-3deg); }
  58% { transform: scale(.96) rotate(.8deg); }
  100% { transform: none; }
}

.brilhos { position: absolute; inset: 0; pointer-events: none; }
.brilhos i { position: absolute; display: block; width: 28px; height: 28px; opacity: 0; animation: brilho .74s cubic-bezier(.2, .9, .3, 1) forwards; }
.brilhos svg { display: block; width: 100%; height: 100%; fill: var(--brasa); }
.brilhos i:nth-child(1) { right: -19px; top: -21px; animation-delay: .03s; }
.brilhos i:nth-child(2) { left: -16px; bottom: -8px; width: 17px; height: 17px; animation-delay: .11s; }
.brilhos i:nth-child(2) svg { fill: var(--osso); }
.brilhos i:nth-child(3) { right: 24%; top: -30px; width: 14px; height: 14px; animation-delay: .19s; }
@keyframes brilho {
  0% { opacity: 0; transform: scale(0) rotate(-60deg); }
  40% { opacity: 1; transform: scale(1.15) rotate(10deg); }
  100% { opacity: 0; transform: scale(.4) rotate(45deg); }
}

/* o resto do estalo chega logo atrás das palavras */
.estalo-texto .tema, .corpo, .citacao, .usar {
  transition: transform .46s cubic-bezier(.2, .85, .25, 1), opacity .36s ease-out;
}
.corpo { transition-delay: .12s; }
.citacao { transition-delay: .18s; }
.usar { transition-delay: .22s; }
.espera .estalo-texto .tema { opacity: .2; transform: translateX(-12px); transition: none; }
.espera .corpo { opacity: .1; transform: translateY(16px); transition: none; }
.espera .citacao, .espera .usar { opacity: .06; transform: translateY(12px); transition: none; }

.corpo p {
  margin: 0 0 calc(9px * var(--esc));
  font-family: var(--f-livro); font-weight: 400;
  font-size: calc(var(--esc) * clamp(14.5px, 4.15vw, 17.5px));
  line-height: 1.48; color: var(--osso-2);
  text-wrap: pretty;
}
.corpo p:last-child { margin-bottom: 0; }
.corpo em { font-style: normal; color: var(--osso); }

.citacao {
  margin: calc(14px * var(--esc)) 0 0;
  padding: 1px 0 1px 13px;
  border-left: 2px solid var(--brasa);
}
.citacao p {
  margin: 0 0 6px;
  font-family: var(--f-livro); font-style: italic; font-weight: 400;
  font-size: calc(var(--esc) * clamp(14.5px, 4vw, 16.5px));
  line-height: 1.45; color: var(--osso);
}
.citacao cite { display: block; font: 500 11.5px/1.25 var(--f-util); font-style: normal; color: var(--po); }
.sem-citacao .citacao { display: none; }

.usar {
  margin-top: calc(14px * var(--esc));
  padding-top: calc(11px * var(--esc));
  border-top: 1px dashed var(--fuligem);
}
.usar-rotulo {
  display: block; margin-bottom: 6px;
  font: 700 10.5px/1 var(--f-util); letter-spacing: .16em; text-transform: uppercase; color: var(--brasa);
}
.usar p {
  margin: 0;
  font-family: var(--f-util); font-weight: 500;
  font-size: calc(var(--esc) * clamp(13.5px, 3.8vw, 15px));
  line-height: 1.42; color: var(--osso);
}

.acoes {
  flex: none; height: 50px;
  display: flex; align-items: center; gap: 2px;
  padding: 0 8px 4px;
}
.acao {
  display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--osso-2); font: 600 13px/1 var(--f-util);
  cursor: pointer;
}
.acao .ico { width: 21px; height: 21px; }
.acao:active { background: var(--carvao-2); }
.acao-estalei[aria-pressed="true"] { color: var(--osso); }
.acao-estalei[aria-pressed="true"] .ico { fill: var(--brasa); stroke: var(--brasa); animation: carimbo .42s cubic-bezier(.2, .9, .3, 1.4); }
.acao-livro { margin-left: auto; padding-right: 8px; }
.acao-livro .ico { width: 16px; height: 16px; stroke-width: 2.2; }

/* topo do feed */
.feed-topo {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  height: var(--topo);
  padding: var(--seg-topo) 10px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(#060505 62%, rgba(6, 5, 5, 0));
  pointer-events: none;
}
.feed-topo > * { pointer-events: auto; }
.dose, .seq {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 8px;
  text-decoration: none; color: var(--osso);
  font: 600 13.5px/1 var(--f-util); font-variant-numeric: tabular-nums;
}
.anel { width: 26px; height: 26px; transform: rotate(-90deg); }
.anel-fundo { fill: none; stroke: var(--fuligem); stroke-width: 3.6; }
.anel-cheio {
  fill: none; stroke: var(--brasa); stroke-width: 3.6; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset .7s cubic-bezier(.2, .8, .2, 1);
}
.dose-txt > span { color: var(--po); }
.dose--feita .anel, .dose--tique .anel { animation: tique .5s cubic-bezier(.2, 1.4, .4, 1); }
.dose--tique [data-dose-n] { display: inline-block; animation: numero .42s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes tique {
  0% { transform: rotate(-90deg) scale(1); }
  35% { transform: rotate(-90deg) scale(1.24); }
  100% { transform: rotate(-90deg) scale(1); }
}
@keyframes numero { 0% { transform: translateY(70%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.seq .mascote.pisca { animation: saltinho .44s cubic-bezier(.2, 1.5, .4, 1); }
.seq .mascote.pisca .m-olhos { animation: piscarJa .36s ease-in-out; }
@keyframes saltinho { 0% { transform: none; } 40% { transform: translateY(-3px) scale(1.18); } 100% { transform: none; } }
@keyframes piscarJa { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.1); } }
.marca { font: 400 19px/1 var(--f-cartaz); letter-spacing: .08em; text-transform: uppercase; color: var(--osso); }
.seq .mascote { width: 22px; height: 22px; transition: opacity .3s, filter .3s; }
.seq:not(.seq--hoje) .mascote { opacity: .55; filter: saturate(.35); }
.seq--hoje .mascote { animation: carimbo .5s cubic-bezier(.2, .9, .3, 1.4); }

/* dica do primeiro estalo */
.dica {
  position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 7px;
  width: fit-content; max-width: calc(100% - 28px); margin: 0 auto;
  transform: translateY(10px);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  background: var(--carvao-2);
  box-shadow: inset 0 0 0 1px var(--fuligem), 0 12px 32px rgba(0, 0, 0, .55);
  color: var(--osso); font: 600 13.5px/1.25 var(--f-util); text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.dica--on { opacity: 1; transform: none; }
.dica-seta .ico { display: block; width: 18px; height: 18px; stroke: var(--brasa); stroke-width: 2.6; animation: subir 1.3s ease-in-out infinite; }
@keyframes subir { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-3px); } }

/* topo do leitor */
.feed-topo--leitor { justify-content: flex-start; gap: 4px; padding-left: 4px; }
.feed-topo--leitor .dose { margin-left: auto; }
.voltar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: transparent; color: var(--osso); cursor: pointer;
}
.voltar:active { background: var(--carvao-2); }
.leitor-titulo { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.leitor-titulo b { font: 600 14px/1.1 var(--f-util); color: var(--osso); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leitor-titulo span { font: 600 11.5px/1 var(--f-util); color: var(--po); font-variant-numeric: tabular-nums; }

/* a estrela que estala */
.camada { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.camada > * { pointer-events: auto; }
.camada > .estouro, .camada > .toque { pointer-events: none; }

.estouro { position: fixed; width: 0; height: 0; --d1: -40px; --d2: -92px; }
.estouro .mascote {
  position: absolute; width: 116px; height: 116px; left: -58px; top: -58px;
  animation: estalo .95s cubic-bezier(.2, .9, .25, 1.2) forwards;
}
.estouro--pequeno { --d1: -20px; --d2: -46px; }
.estouro--pequeno .mascote { width: 54px; height: 54px; left: -27px; top: -27px; }
.faisca {
  position: absolute; left: -2px; top: -13px;
  width: 4px; height: 26px; border-radius: 2px;
  background: var(--brasa); opacity: 0;
  transform-origin: 2px 13px;
  animation: faisca .56s ease-out .06s forwards;
}
.estouro--pequeno .faisca { height: 14px; top: -7px; transform-origin: 2px 7px; width: 3px; }
.faisca:nth-of-type(1) { --r: 0deg; }
.faisca:nth-of-type(2) { --r: 45deg; }
.faisca:nth-of-type(3) { --r: 90deg; }
.faisca:nth-of-type(4) { --r: 135deg; }
.faisca:nth-of-type(5) { --r: 180deg; }
.faisca:nth-of-type(6) { --r: 225deg; }
.faisca:nth-of-type(7) { --r: 270deg; }
.faisca:nth-of-type(8) { --r: 315deg; }
@keyframes faisca {
  0% { opacity: 1; transform: rotate(var(--r)) translateY(var(--d1)) scaleY(.35); }
  100% { opacity: 0; transform: rotate(var(--r)) translateY(var(--d2)) scaleY(1); }
}
@keyframes estalo {
  0% { transform: scale(0) rotate(-40deg); opacity: 1; }
  34% { transform: scale(1.2) rotate(8deg); }
  52% { transform: scale(.93) rotate(-3deg); }
  70% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: translateY(-48px) scale(.84); opacity: 0; }
}
@keyframes carimbo {
  0% { transform: scale(1.9); opacity: 0; }
  60% { transform: scale(.88); opacity: 1; }
  100% { transform: scale(1); }
}
.anel.dose--feita, .dose--feita .anel { transform-origin: center; }

/* ---------- páginas ---------- */

.pagina { padding: calc(var(--seg-topo) + 20px) var(--lado) 44px; }
.pagina-cabeca { margin-bottom: 20px; }
.titulo-tela { margin: 0; font: 400 46px/.95 var(--f-cartaz); text-transform: uppercase; letter-spacing: .01em; color: var(--osso); }
.sub { margin: 9px 0 0; font: 500 14px/1.3 var(--f-util); color: var(--po); }
.secao-titulo, .eyebrow {
  margin: 30px 0 14px;
  font: 700 11px/1.2 var(--f-util); letter-spacing: .16em; text-transform: uppercase; color: var(--po);
}
.eyebrow { margin: 0; }

.botao {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 54px; padding: 0 22px;
  border: 0; border-radius: var(--raio);
  font: 700 16px/1.1 var(--f-util); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .12s, filter .12s, background .2s;
}
.botao--brasa { background: var(--brasa); color: var(--breu); }
.botao--brasa:active { transform: translateY(1px); filter: brightness(.94); }
.botao--brasa:disabled { background: var(--carvao-2); color: var(--po); cursor: default; transform: none; filter: none; }
.botao--fantasma { background: transparent; color: var(--osso); box-shadow: inset 0 0 0 1px var(--fuligem); }
.botao--fantasma:active { background: var(--carvao); }

.barra { position: relative; height: 4px; border-radius: 2px; background: var(--fuligem); overflow: hidden; }
.barra i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brasa); border-radius: 2px; transition: width .5s; }
.barra--fina { height: 3px; margin-top: 3px; }

/* explorar */
.colecoes {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--lado)); padding: 2px var(--lado) 6px;
  scroll-padding: 0 var(--lado);
}
.colecao {
  position: relative; overflow: hidden;
  flex: 0 0 236px; min-height: 156px; padding: 16px 16px 14px;
  display: flex; flex-direction: column;
  border-radius: var(--raio); background: var(--carvao);
  box-shadow: inset 0 0 0 1px var(--fuligem);
  color: var(--osso); text-decoration: none;
  scroll-snap-align: start;
}
.colecao > *:not(.colecao-forma) { position: relative; }
.colecao b { font: 400 25px/1 var(--f-cartaz); text-transform: uppercase; max-width: 92%; }
.colecao-desc { margin-top: 8px; font: 400 13.5px/1.38 var(--f-livro); color: var(--osso-2); max-width: 82%; }
.colecao-n { margin-top: auto; padding-top: 12px; font: 600 12px/1 var(--f-util); color: var(--po); }
.colecao-forma { position: absolute; right: -16px; bottom: -16px; width: 74px; height: 74px; background: var(--brasa); }
.colecao--0 .colecao-forma { border-radius: 50%; }
.colecao--1 .colecao-forma { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.colecao--2 .colecao-forma { border-radius: 999px 999px 0 0; height: 60px; }
.colecao--3 .colecao-forma { clip-path: polygon(0 0, 100% 0, 54% 50%, 100% 100%, 0 100%, 46% 50%); }
.colecao--4 .colecao-forma { clip-path: polygon(0 100%, 0 18%, 25% 58%, 50% 0, 75% 58%, 100% 18%, 100% 100%); }

.filtros, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filtros { margin-bottom: 20px; }
.chip {
  height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: var(--carvao); box-shadow: inset 0 0 0 1px var(--fuligem);
  color: var(--osso-2); font: 600 13px/1 var(--f-util); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--osso); color: var(--breu); box-shadow: none; }

.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 470px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.livro-card { display: flex; flex-direction: column; gap: 5px; color: var(--osso); text-decoration: none; }
.livro-card .capa { width: 100%; margin-bottom: 7px; }
.livro-card b { font: 600 14px/1.25 var(--f-util); }
.livro-card-autor { font: 500 12.5px/1.2 var(--f-util); color: var(--po); }

/* livro */
.pagina-barra { height: 42px; margin: -8px 0 10px -10px; display: flex; align-items: center; }
.livro-hero { display: flex; gap: 18px; align-items: flex-end; margin-bottom: 20px; }
.capa--grande { width: 122px; box-shadow: inset 3px 0 0 rgba(0, 0, 0, .35), inset 0 0 0 1px var(--fuligem), 0 18px 40px rgba(0, 0, 0, .55); }
.livro-info { min-width: 0; padding-bottom: 2px; }
.livro-titulo { margin: 9px 0 9px; font: 400 34px/.98 var(--f-cartaz); text-transform: uppercase; color: var(--osso); text-wrap: balance; }
.livro-titulo--longo { font-size: 25px; line-height: 1.02; }
.livro-autor { margin: 0; font: 500 14px/1.3 var(--f-util); color: var(--osso-2); }
.livro-meta { margin: 0 0 12px; font: 600 13px/1.2 var(--f-util); color: var(--po); }
.barra-txt { margin: 8px 0 18px; font: 500 12.5px/1 var(--f-util); color: var(--po); }
.texto-livro { margin: 0; font: 400 16.5px/1.55 var(--f-livro); color: var(--osso-2); }
.lista-estalos { list-style: none; margin: 0; padding: 0; }
.lista-estalos li + li { border-top: 1px solid var(--fuligem); }
.lista-estalos a {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start;
  padding: 15px 0; color: var(--osso); text-decoration: none;
}
.num { font: 600 13px/1.5 var(--f-util); color: var(--po); font-variant-numeric: tabular-nums; }
.lista-gancho { font: 400 19.5px/1.1 var(--f-cartaz); color: var(--osso); }
.lista-gancho em { font-style: normal; color: var(--brasa); }
.marcas { display: flex; gap: 6px; padding-top: 2px; }
.marcas .ico { width: 17px; height: 17px; }
.marca-salvo .ico { fill: var(--brasa); stroke: var(--brasa); }
.marca-lido .ico { stroke: var(--po); stroke-width: 2.4; }

/* salvos */
.lista-salvos { list-style: none; margin: 0; padding: 0; }
.lista-salvos li + li { border-top: 1px solid var(--fuligem); }
.lista-salvos a { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; color: var(--osso); text-decoration: none; }
.lista-salvos .capa--mini { width: 30px; margin-top: 2px; }
.salvo-txt { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.salvo-livro { font: 500 12.5px/1.25 var(--f-util); color: var(--po); }

.vazio { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 8px 20px; }
.vazio-mascote { width: 92px; height: 92px; margin-bottom: 24px; }
.vazio-titulo { margin: 0 0 10px; font: 400 30px/1 var(--f-cartaz); text-transform: uppercase; }
.vazio-txt { margin: 0 0 26px; max-width: 26ch; font: 400 16px/1.5 var(--f-livro); color: var(--osso-2); }
.vazio .botao { max-width: 260px; }

/* progresso */
.prog-hero {
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: end;
  margin-bottom: 24px;
}
.prog-mascote { grid-row: 1 / 3; width: 96px; height: 96px; }
.prog-num { margin: 0; font: 400 86px/.84 var(--f-cartaz); color: var(--osso); }
.prog-rotulo { margin: 6px 0 2px; font: 600 14px/1 var(--f-util); color: var(--po); }
.prog-frase { grid-column: 1 / -1; margin: 18px 0 0; font: 400 16px/1.5 var(--f-livro); color: var(--osso-2); }

.semana { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dia { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dia-ini { font: 600 11.5px/1 var(--f-util); color: var(--po); }
.dia-marca {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--fuligem);
}
.dia-marca .ico { width: 16px; height: 16px; fill: var(--breu); stroke: var(--breu); stroke-width: 1.2; }
.dia--feito .dia-marca { background: var(--brasa); box-shadow: none; }
.dia--hoje .dia-ini { color: var(--osso); }
.dia--hoje:not(.dia--feito) .dia-marca { box-shadow: inset 0 0 0 1.5px var(--osso-2); }

.hoje-box { margin-bottom: 18px; padding: 16px; border-radius: var(--raio); background: var(--carvao); box-shadow: inset 0 0 0 1px var(--fuligem); }
.hoje-box p { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font: 500 14px/1 var(--f-util); color: var(--osso-2); }
.hoje-box p span { margin-right: auto; font: 700 11px/1 var(--f-util); letter-spacing: .16em; text-transform: uppercase; color: var(--po); }
.hoje-box b { font: 400 28px/1 var(--f-cartaz); color: var(--osso); }

.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.numeros div {
  display: flex; flex-direction: column-reverse; gap: 6px;
  padding: 14px; border-radius: var(--raio);
  background: var(--carvao); box-shadow: inset 0 0 0 1px var(--fuligem);
}
.numeros dt { font: 500 12.5px/1.2 var(--f-util); color: var(--po); }
.numeros dd { margin: 0; font: 400 36px/1 var(--f-cartaz); color: var(--osso); }
.mes { margin: 16px 0 0; font: 400 15.5px/1.5 var(--f-livro); color: var(--osso-2); }

.ajuste { margin-bottom: 20px; }
.ajuste-rotulo { margin: 0 0 10px; font: 600 14px/1 var(--f-util); color: var(--osso); }
.segmentos {
  display: inline-grid; grid-template-columns: repeat(3, 64px);
  padding: 4px; border-radius: 999px;
  background: var(--carvao); box-shadow: inset 0 0 0 1px var(--fuligem);
}
.segmentos--2 { grid-template-columns: repeat(2, 104px); }
.segmentos button { height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--osso-2); font: 700 14px/1 var(--f-util); cursor: pointer; }
.segmentos button[aria-pressed="true"] { background: var(--osso); color: var(--breu); }
.ajuste-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 8px; }
.link-acao {
  padding: 10px 0; border: 0; background: none; cursor: pointer;
  color: var(--osso-2); font: 600 14px/1 var(--f-util);
  text-decoration: underline; text-decoration-color: var(--fuligem); text-underline-offset: 4px;
}
.link-acao--perigo { color: var(--brasa); }

/* ---------- entrada ---------- */

.entrada {
  min-height: 100%;
  display: flex; flex-direction: column;
  padding: calc(var(--seg-topo) + 12px) var(--lado) calc(var(--seg-baixo) + 22px);
}
.entrada-topo { display: flex; align-items: center; gap: 12px; height: 44px; margin-left: -10px; }
.passos { display: flex; gap: 6px; flex: 1; }
.passos i { flex: 1; height: 3px; border-radius: 2px; background: var(--fuligem); }
.passos i.on { background: var(--brasa); }
.entrada-conta { font: 600 12px/1 var(--f-util); color: var(--po); font-variant-numeric: tabular-nums; white-space: nowrap; }
.entrada-miolo { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 22px 0; }
.entrada-miolo--abre { align-items: center; text-align: center; }
.entrada-mascote { width: 128px; height: 128px; margin-bottom: 28px; animation: flutuar 3.6s ease-in-out infinite; }
.entrada-miolo--pronto .entrada-mascote { width: 108px; height: 108px; animation: pular 1s cubic-bezier(.2, .9, .3, 1.3) both, flutuar 3.6s 1s ease-in-out infinite; }
@keyframes flutuar { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.entrada-marca { margin: 0; font: 400 78px/.9 var(--f-cartaz); text-transform: uppercase; letter-spacing: .03em; }
.entrada-slogan { margin: 14px 0 0; font: italic 400 21px/1.3 var(--f-livro); color: var(--osso-2); }
.entrada-pergunta { margin: 0 0 22px; font: 400 36px/1.02 var(--f-cartaz); color: var(--osso); text-wrap: balance; }
.entrada-sub { margin: -8px 0 20px; font: 400 15.5px/1.45 var(--f-livro); color: var(--po); }
.entrada-bordao { margin: 0; font: italic 400 20px/1.35 var(--f-livro); color: var(--osso-2); }

.opcoes { display: flex; flex-direction: column; gap: 10px; }
.opcao {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 58px; padding: 12px 14px 12px 16px;
  border: 0; border-radius: var(--raio);
  background: var(--carvao); box-shadow: inset 0 0 0 1px var(--fuligem);
  color: var(--osso); font: 600 16px/1.25 var(--f-util); text-align: left;
  cursor: pointer; transition: box-shadow .15s, background .15s;
}
.opcao[aria-checked="true"], .opcao[aria-pressed="true"] { background: var(--carvao-2); box-shadow: inset 0 0 0 2px var(--brasa); }
.opcao-txt { display: flex; flex-direction: column; gap: 5px; }
.opcao-detalhe { font: 500 13px/1.2 var(--f-util); color: var(--po); }
.opcao-tag {
  display: inline-block; margin-left: 6px; padding: 4px 7px 3px; border-radius: 999px;
  background: var(--osso); color: var(--breu);
  font: 700 9.5px/1 var(--f-util); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px;
}
.opcao-marca {
  display: grid; place-items: center; flex: none;
  margin-left: auto; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--fuligem);
}
.opcao-marca .ico { width: 15px; height: 15px; stroke: var(--breu); stroke-width: 3; opacity: 0; }
[aria-checked="true"] > .opcao-marca, [aria-pressed="true"] > .opcao-marca { background: var(--brasa); box-shadow: none; }
[aria-checked="true"] > .opcao-marca .ico, [aria-pressed="true"] > .opcao-marca .ico { opacity: 1; }
.entrada-reacao { min-height: 92px; margin: 18px 0 0; font: 400 17px/1.45 var(--f-livro); color: var(--osso-2); }
.entrada-reacao b { color: var(--osso); font-weight: 600; }
.entrada-reacao .nota { display: block; margin-top: 7px; font: 500 12px/1.3 var(--f-util); color: var(--po); }
.entrada-rodape { display: flex; flex-direction: column; gap: 12px; }
.entrada-nota { margin: 0; text-align: center; font: 500 13px/1 var(--f-util); color: var(--po); }
.entrada-miolo > * { animation: subirEntrar .5s cubic-bezier(.2, .8, .2, 1) both; }
.entrada-miolo > *:nth-child(2) { animation-delay: .06s; }
.entrada-miolo > *:nth-child(3) { animation-delay: .12s; }
.entrada-miolo > *:nth-child(4) { animation-delay: .18s; }
@keyframes subirEntrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- festa da dose ---------- */

.festa {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 24px;
  background: rgba(8, 7, 6, .965);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s;
}
.festa--on { opacity: 1; }
.festa-miolo { width: 100%; max-width: 380px; text-align: center; }
.festa-mascote { position: relative; width: 132px; height: 132px; margin: 0 auto 24px; --d1: -78px; --d2: -128px; }
.festa-mascote .mascote { width: 100%; height: 100%; animation: pular 1.1s cubic-bezier(.2, .9, .3, 1.3) .1s both; }
.festa-mascote .faisca { left: calc(50% - 2px); top: calc(50% - 13px); animation-delay: .42s; }
.festa-eyebrow { margin: 0 0 10px; font: 600 12px/1 var(--f-util); letter-spacing: .14em; text-transform: uppercase; color: var(--po); }
.festa-titulo { margin: 0 0 16px; font: 400 54px/.94 var(--f-cartaz); text-transform: uppercase; color: var(--osso); }
.festa-titulo em { display: block; font-style: normal; color: var(--brasa); }
.festa-seq { margin: 0 0 18px; font: 600 15px/1 var(--f-util); color: var(--osso-2); }
.festa-seq b { margin-right: 3px; font: 400 30px/1 var(--f-cartaz); color: var(--osso); }
.semana--festa { max-width: 310px; margin: 0 auto 28px; }
.semana--festa .dia--hoje.dia--feito .dia-marca { animation: carimbo .6s .6s cubic-bezier(.2, .9, .3, 1.4) both; }
.festa-botoes { display: flex; flex-direction: column; gap: 10px; }
@keyframes pular {
  0% { transform: translateY(-46px) scale(.4) rotate(-30deg); opacity: 0; }
  55% { transform: translateY(6px) scale(1.08) rotate(6deg); opacity: 1; }
  76% { transform: translateY(-4px) scale(.97) rotate(-2deg); }
  100% { transform: none; }
}

/* ---------- aviso e modal ---------- */

.aviso {
  position: fixed; z-index: 90; left: 50%; bottom: calc(var(--abas) + 14px);
  transform: translate(-50%, 10px);
  max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 999px;
  background: var(--osso); color: var(--breu);
  font: 600 13.5px/1.2 var(--f-util); text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.aviso--on { opacity: 1; transform: translate(-50%, 0); }

.modal {
  position: fixed; inset: 0; z-index: 85;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 16px calc(16px + var(--seg-baixo));
  background: rgba(8, 7, 6, .84);
  opacity: 0; transition: opacity .25s;
}
.modal--on { opacity: 1; }
.modal-caixa {
  width: 100%; max-width: 420px; max-height: 92%; overflow: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: 18px;
  background: var(--carvao); box-shadow: inset 0 0 0 1px var(--fuligem);
}
.modal-titulo { margin: 0 0 2px; font: 400 28px/1 var(--f-cartaz); text-transform: uppercase; }
.modal-txt { margin: 0 0 8px; font: 400 16px/1.5 var(--f-livro); color: var(--osso-2); }
.modal-txt b { color: var(--osso); font-weight: 600; }
.previa-img { display: block; width: 100%; max-width: 240px; margin: 0 auto 6px; border-radius: 10px; box-shadow: 0 0 0 1px var(--fuligem); -webkit-touch-callout: default; user-select: auto; }

.sem-js { padding: 40px 24px; font: 400 17px/1.5 var(--f-livro); }

/* ---------- modo gravação ---------- */

.gravando, .gravando * { cursor: none !important; }

.toque { position: fixed; left: 0; top: 0; z-index: 95; width: 52px; height: 52px; opacity: 0; transition: opacity .12s; will-change: transform; }
.toque::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(236, 226, 203, .26);
  box-shadow: inset 0 0 0 2px rgba(236, 226, 203, .78), 0 0 0 9px rgba(236, 226, 203, .07);
  transition: transform .11s ease-out;
}
.toque--on { opacity: 1; }
.toque--batida::after { transform: scale(.76); }

.abertura { position: fixed; inset: 0; z-index: 70; background: #050504; transition: opacity .45s; overflow: hidden; }
.abertura-grade {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); align-content: start;
  gap: 26px 0; padding: calc(var(--seg-topo) + 64px) 18px 0;
  transition: opacity .35s, transform .5s;
}
.abertura-grade--some { opacity: 0; transform: scale(1.06); }
.abertura-app { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.abertura-app i { display: block; width: 60px; height: 60px; border-radius: 15px; background: #15130f; box-shadow: inset 0 0 0 1px #1f1c18; }
.abertura-app span { display: block; width: 38px; height: 6px; border-radius: 3px; background: #1a1714; }
.abertura-app--estalo img { display: block; width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 6px 18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .07); }
.abertura-app--estalo span { width: auto; height: auto; background: none; font: 500 11.5px/1 var(--f-util); color: var(--osso-2); }
.abertura-expande {
  position: fixed; z-index: 2;
  display: grid; place-items: center;
  border-radius: 15px; background: #050504; overflow: hidden;
  transition: left .55s cubic-bezier(.3, 0, .1, 1), top .55s cubic-bezier(.3, 0, .1, 1), width .55s cubic-bezier(.3, 0, .1, 1), height .55s cubic-bezier(.3, 0, .1, 1), border-radius .55s;
}
.abertura-expande .mascote { width: 61%; transition: width .55s cubic-bezier(.3, 0, .1, 1); }
.abertura-expande--on { border-radius: 0; }
.abertura-expande--on .mascote { width: 118px; }
.abertura--some { opacity: 0; }

/* ---------- movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* telas largas: o app fica numa coluna de celular */
@media (min-width: 560px) {
  .app { box-shadow: 0 0 0 1px var(--fuligem); }
}
