/* Suspiros 3D. Uma pastelaria de bolso: creme quente, ameixa, cor-de-rosa e serifa macia. */
@font-face { font-family: 'Fraunces'; src: url('assets/fonts/fraunces-latin.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('assets/fonts/fraunces-italic-latin.woff2') format('woff2'); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-latin.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --escala: 1;
  --papel: #FFFAF5;
  --papel-2: #FFF3EA;
  --cartao: #FFFFFF;
  --tinta: #3C193B;
  --tinta-2: #6E566A;
  --rosa: #FB4E87;
  --rosa-m: #E83F77;
  --rosa-e: #C22D62;
  --rosa-c: #FFE2EC;
  --blush: #FFF2F6;
  --manteiga: #FFD86B;
  --manteiga-c: #FFF0C2;
  --linha: #F1DFE6;
  --sombra: 0 1px 2px rgba(60, 25, 59, .05), 0 10px 28px -10px rgba(60, 25, 59, .16);
  --serifa: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --nav: 76px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { font-size: calc(18px * var(--escala)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--sans); line-height: 1.55;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body.com-folha, body.com-leitor { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; border-radius: 10px; }
main:focus { outline: none; }
.ic { width: 1.35em; height: 1.35em; flex: none; }
.ilu { display: block; width: 100%; height: auto; }
em { font-style: italic; }

#app, #entrada { max-width: 560px; margin: 0 auto; }
#vista { padding-bottom: calc(var(--nav) + 2rem + env(safe-area-inset-bottom)); min-height: 100vh; }

/* ---------- Entrada ---------- */
#entrada {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0; max-width: none; z-index: 40;
  background: radial-gradient(120% 70% at 50% 6%, #FFFFFF 0%, var(--papel) 50%, var(--blush) 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: opacity .4s ease, transform .4s ease;
}
#entrada.sai { opacity: 0; transform: scale(1.02); pointer-events: none; }
.ent-fundo { position: absolute; top: 0; bottom: 0; left: 0; right: 0; pointer-events: none; }
.bola { position: absolute; display: block; border-radius: 50%; }
.b1 { width: 120px; height: 120px; left: -30px; top: 9%; background: var(--rosa-c); opacity: .7; }
.b2 { width: 54px; height: 54px; right: 12%; top: 12%; background: var(--manteiga-c); }
.b3 { width: 90px; height: 90px; right: -24px; bottom: 16%; background: var(--manteiga-c); opacity: .8; }
.b4 { width: 34px; height: 34px; left: 16%; bottom: 8%; border: 2px solid var(--rosa-c); }
.ent-in { position: relative; width: 100%; max-width: 420px; padding: 24px 28px; text-align: center; }
.ent-art { width: 100%; max-width: 250px; display: block; margin: 0 auto 6px; overflow: visible; }
.ent-corpo { opacity: 0; animation: surge .6s 1.5s ease forwards; }
.tr { fill: none; stroke: var(--rosa); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.t1 { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; animation: desenha 1.6s .15s cubic-bezier(.45, 0, .2, 1) forwards; }
.t2 { stroke: #F7A9C3; stroke-width: .75; stroke-dasharray: 1 2; stroke-dashoffset: 1.02; animation: desenha .5s 1.7s ease-out forwards; }
.t2.d2 { animation-delay: 1.9s; }
.t2.d3 { animation-delay: 2.1s; }
.brilho { opacity: 0; transform-box: fill-box; transform-origin: center; animation: brilha .6s ease forwards; }
.s1 { animation-delay: 2.3s; } .s2 { animation-delay: 2.45s; } .s3 { animation-delay: 2.6s; }
.ent-sombra { opacity: 0; animation: surge .6s 1.4s forwards; }
@keyframes desenha { to { stroke-dashoffset: 0; } }
@keyframes surge { to { opacity: 1; } }
@keyframes brilha { 0% { opacity: 0; transform: scale(.2) rotate(-30deg); } 70% { opacity: 1; transform: scale(1.2); } 100% { opacity: 1; transform: none; } }
.ent-in h1 { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 2.7rem; line-height: 1.02; letter-spacing: -.02em; animation: sobe .7s .35s both; }
.ent-in h1 em { font-weight: 500; color: var(--rosa-m); }
.ent-metodo { margin-top: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rosa-e); animation: sobe .7s .45s both; }
.lema { font-family: var(--serifa); font-style: italic; color: var(--tinta-2); text-wrap: balance; }
.ent-in .lema { margin: .5rem 0 1.8rem; font-size: 1.1rem; animation: sobe .7s .55s both; }
.ent-in .bt { animation: sobe .7s .65s both; }
.ent-nota { margin-top: .9rem; font-size: .88rem; color: var(--tinta-2); }
@keyframes sobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Botões ---------- */
.bt {
  display: flex; align-items: center; justify-content: center; gap: .55em; width: 100%;
  min-height: 3.3rem; padding: .7rem 1.2rem; border-radius: 16px; font-weight: 700; text-align: center; line-height: 1.25;
  transition: transform .12s ease, background-color .15s ease;
}
.bt:active { transform: scale(.98); }
.bt-p { background: var(--tinta); color: #fff; box-shadow: 0 8px 20px -8px rgba(60, 25, 59, .55); }
.bt-p:hover { background: #2B122A; }
.bt-s { background: var(--rosa-c); color: var(--rosa-e); }
.bt-feita { background: var(--manteiga-c); color: var(--tinta); }
.bt-feita .ic { color: var(--rosa-e); }
.bt-l { background: transparent; color: var(--tinta); border: 1.5px solid var(--linha); font-weight: 600; }
.bt-l .ic:last-child { width: 1em; height: 1em; color: var(--rosa); }
.bt-g { min-height: 3.8rem; font-size: 1.2rem; border-radius: 18px; }
.bt-m { min-height: 2.9rem; width: auto; display: inline-flex; padding: .55rem 1.1rem; font-size: .96rem; white-space: nowrap; }
.txt { display: inline-flex; align-items: center; gap: .4em; color: var(--rosa-e); font-weight: 700; min-height: 2.75rem; }
.redondo {
  width: 2.8rem; height: 2.8rem; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--cartao); border: 1px solid var(--linha);
}
.letra { font-family: var(--serifa); font-weight: 600; font-size: 1.02rem; }
.sub { color: var(--rosa-e); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Topo ---------- */
.topo { display: flex; align-items: center; gap: .7rem; padding: calc(.8rem + env(safe-area-inset-top)) 1rem .6rem; }
.topo-t { flex: 1; font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.5rem; line-height: 1.15; min-width: 0; }
.topo-esp { flex: 1; }
.topo-marca { flex: 1; display: flex; align-items: center; gap: .55rem; font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.12rem; }
.marca-ic { width: 2.1rem; height: 2.1rem; flex: none; }
.olho { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rosa-e); }

/* ---------- Início ---------- */
.ola { padding: .6rem 1.1rem 1.2rem; }
.ola h1 { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 2.05rem; line-height: 1.08; letter-spacing: -.02em; margin-bottom: .6rem; }
.ola h1 em { font-weight: 500; color: var(--rosa-m); }
.ola p { color: var(--tinta-2); }
.continua {
  position: relative; display: flex; margin: 0 1rem; border-radius: 24px; overflow: hidden; min-height: 10rem;
  background: linear-gradient(135deg, #FFE9F1 0%, #FFD6E5 100%); box-shadow: var(--sombra);
}
.continua::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(232, 63, 119, .14) 1.5px, transparent 1.5px); background-size: 16px 16px; }
.cont-tx { flex: 1; min-width: 0; padding: 1.1rem 1.1rem 1.15rem; position: relative; z-index: 1; }
.cont-tx h2 { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.38rem; line-height: 1.12; margin: .3rem 0 .25rem; text-wrap: balance; }
.cont-tx p:not(.olho) { color: var(--tinta-2); font-size: .94rem; }
.cont-tx .bt { margin-top: .85rem; }
.cont-il { width: 30%; max-width: 8.5rem; flex: none; align-self: flex-end; position: relative; z-index: 1; margin: 0 .1rem -.2rem -1rem; }

.bloco { padding: 1.8rem 1rem 0; }
.bloco-c { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; padding-top: 1.1rem; border-top: 3px dotted #F6CADB; }
.bloco-c h2 { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.4rem; line-height: 1.15; }
.contagem { color: var(--tinta-2); font-size: .88rem; white-space: nowrap; }
.ver { color: var(--rosa-e); font-weight: 700; font-size: .92rem; border-bottom: 1.5px solid currentColor; white-space: nowrap; }

.progresso { display: block; height: 10px; border-radius: 99px; background: #F6E3EA; overflow: hidden; }
.progresso span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--rosa), var(--rosa-m)); transition: width .35s ease; }

.percurso { list-style: none; margin-top: 1rem; position: relative; }
.percurso li { display: flex; align-items: flex-start; gap: .85rem; position: relative; padding-bottom: .95rem; }
.percurso li:not(:last-child)::before {
  content: ''; position: absolute; left: calc(1.25rem - 1px); top: 2.6rem; bottom: .1rem; width: 0;
  border-left: 3px dotted #F3C2D4;
}
.percurso li.ok:not(:last-child)::before { border-left: 3px solid var(--rosa); }
.no {
  width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--cartao); border: 2px solid #F3C2D4; font-family: var(--serifa); font-weight: 700; font-size: 1.05rem; color: var(--rosa-e);
}
.percurso li.ok .no { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.percurso a { flex: 1; display: flex; align-items: center; gap: .5rem; min-height: 2.5rem; font-size: 1rem; line-height: 1.3; font-weight: 500; }
.percurso a .ic { width: 1em; height: 1em; color: var(--rosa); margin-left: auto; }
.percurso li.ok a { color: var(--tinta-2); text-decoration: line-through; text-decoration-color: rgba(110, 86, 106, .45); }

.atalhos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.atalho { display: flex; flex-direction: column; align-items: flex-start; min-height: 7.4rem; padding: .9rem .95rem; border-radius: 20px; background: var(--cartao); border: 1px solid var(--linha); box-shadow: 0 1px 2px rgba(60, 25, 59, .04); }
.atalho-ic { width: 2.7rem; height: 2.7rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rosa-c); color: var(--rosa-e); margin-bottom: auto; }
.atalho:nth-child(2) .atalho-ic, .atalho:nth-child(3) .atalho-ic { background: var(--manteiga-c); color: #8A5A00; }
.atalho b { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.1rem; line-height: 1.15; margin-top: .7rem; }
.atalho small { color: var(--tinta-2); font-size: .84rem; }

.liga {
  display: flex; align-items: center; gap: .7rem; min-height: 3.4rem; padding: .7rem .95rem; margin-top: .8rem;
  border-radius: 16px; background: var(--cartao); border: 1px solid var(--linha); font-weight: 600; line-height: 1.3;
}
.liga > .ic:first-child { color: var(--rosa-e); }
.liga span { flex: 1; }
.liga span .olho { display: block; margin-bottom: .1rem; }
.liga .ic:last-child { width: 1.05em; height: 1.05em; color: var(--rosa); }
.liga.destaque { margin: 1.4rem 1rem 0; background: var(--manteiga-c); border-color: #F7E2A0; }
.guardar { display: flex; gap: .85rem; margin: 1.5rem 1rem 0; padding: 1rem; border-radius: 20px; background: var(--cartao); border: 1px solid var(--linha); }
.guardar > .ic { color: var(--rosa); width: 1.8em; height: 1.8em; margin-top: .1rem; }
.guardar p { color: var(--tinta-2); font-size: .94rem; margin-top: .15rem; }
.guardar-bts { display: flex; align-items: center; gap: 1rem; margin-top: .7rem; flex-wrap: wrap; }
.rod { text-align: center; padding: 2.4rem 1rem .4rem; color: var(--tinta-2); font-size: .86rem; }
.nota-peq { font-size: .88rem; color: var(--tinta-2); margin-top: .8rem; }
.centro { text-align: center; padding: 0 1rem; }

/* ---------- Aulas ---------- */
.player {
  position: relative; margin: 0 1rem; border-radius: 22px; overflow: hidden; padding-top: 56.25%;
  background: #F3D9E2 center / cover no-repeat; box-shadow: var(--sombra);
}
.player.livre { padding-top: 0; }
.player iframe, .player video, .player .capa { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.player .capa { object-fit: cover; }
.player.a-tocar { background: #1D0B1C; }
.carrega { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; color: #fff; opacity: .8; font-size: .95rem; }
.tocar {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; gap: .3rem; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(60, 25, 59, .05) 30%, rgba(60, 25, 59, .5) 100%); color: #fff;
}
.tocar .ic { width: 4.8rem; height: 4.8rem; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .4)); stroke-width: 1.4; }
.tocar span { font-weight: 700; font-size: .95rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.aula-info { padding: 1.05rem 1.1rem 0; }
.aula-info h2 { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.55rem; line-height: 1.14; margin: .2rem 0 .4rem; }
.aula-info > p:not(.olho):not(.nota-peq) { color: var(--tinta-2); margin-bottom: .95rem; }
.aula-info .bt + .bt { margin-top: .55rem; }
.aulas { display: flex; flex-direction: column; gap: .55rem; }
.aula-li { display: flex; align-items: center; gap: .8rem; padding: .8rem .85rem; border-radius: 18px; background: var(--cartao); border: 1px solid var(--linha); min-height: 4rem; }
.aula-li.atual { border-color: var(--rosa); box-shadow: inset 0 0 0 1px var(--rosa); }
.aula-n { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--rosa-c); color: var(--rosa-e); font-family: var(--serifa); font-weight: 700; }
.aula-li.vista .aula-n { background: var(--rosa); color: #fff; }
.aula-t { flex: 1; min-width: 0; line-height: 1.28; }
.aula-t b { display: block; font-weight: 700; }
.aula-t small { display: block; color: var(--tinta-2); font-size: .86rem; margin-top: .12rem; }
.agora { color: var(--rosa); }
.agora .ic { width: 1.6rem; height: 1.6rem; }
.aula-li > .seta { color: var(--rosa); }
.aula-li.fechada { background: transparent; border-style: dashed; border-color: #EDD3DD; }
.aula-li.fechada .aula-n { background: #F6ECF0; color: var(--tinta-2); }
.aula-li.fechada .aula-t b { color: var(--tinta-2); }
.breve { flex: none; font-size: .74rem; font-weight: 700; padding: .25em .6em; border-radius: 99px; background: #F6ECF0; color: var(--tinta-2); white-space: nowrap; }
.caminho { display: flex; gap: .8rem; margin-top: .8rem; padding: .95rem 1rem; border-radius: 18px; background: var(--blush); border: 1.5px dashed #F3C2D4; }
.caminho > .ic { color: var(--rosa-e); width: 1.6em; height: 1.6em; margin-top: .1rem; }
.caminho b { display: block; }
.caminho p { color: var(--tinta-2); font-size: .94rem; margin-top: .1rem; }

/* ---------- Material ---------- */
.pag { padding: .2rem 1rem 0; }
.intro { color: var(--tinta-2); margin-bottom: 1rem; }
.resumo-mat { padding: .9rem 1rem 1rem; border-radius: 18px; background: var(--cartao); border: 1px solid var(--linha); margin-bottom: .4rem; }
.resumo-mat span { display: block; margin-bottom: .5rem; font-size: .95rem; }
.grupo { padding-top: 1.4rem; }
.grupo h2 { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.32rem; line-height: 1.15; }
.grupo > p { color: var(--tinta-2); font-size: .9rem; margin: .1rem 0 .65rem; }
.mats { display: flex; flex-direction: column; gap: .5rem; }
.mat { display: flex; align-items: center; gap: .8rem; min-height: 4.3rem; padding: .7rem .85rem; border-radius: 18px; background: var(--cartao); border: 1px solid var(--linha); }
.mat-ic { width: 2.7rem; height: 2.7rem; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rosa-c); color: var(--rosa-e); }
.mat-t { flex: 1; min-width: 0; line-height: 1.25; }
.mat-t b { display: block; font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.1rem; }
.mat-t small { display: block; color: var(--tinta-2); font-size: .86rem; margin-top: .12rem; }
.mat > .seta { color: var(--rosa); }
.visto { width: 1.9rem; height: 1.9rem; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rosa); color: #fff; }
.visto .ic { width: 1.05rem; height: 1.05rem; stroke-width: 2.6; }

.mat-cab { padding: .2rem 1.1rem 0; }
.mat-hero {
  position: relative; display: flex; align-items: center; justify-content: center; height: 9.5rem; margin-bottom: 1.1rem; border-radius: 26px; overflow: hidden;
  background: linear-gradient(135deg, #FFE9F1 0%, #FFD6E5 100%);
}
.mat-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(232, 63, 119, .16) 1.5px, transparent 1.5px); background-size: 16px 16px; }
.mat-hero-ic { position: relative; width: 5.2rem; height: 5.2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--rosa-m); box-shadow: 0 10px 26px -10px rgba(194, 45, 98, .5); }
.mat-hero-ic .ic { width: 2.6rem; height: 2.6rem; stroke-width: 1.5; }
.mat-hero-n { position: absolute; right: 1rem; top: .8rem; font-family: var(--serifa); font-weight: 600; font-size: .9rem; color: var(--rosa-e); background: var(--manteiga); border-radius: 99px; padding: .15rem .6rem; }
.mat-cab h1 { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 2rem; line-height: 1.08; letter-spacing: -.015em; margin: .2rem 0 .4rem; }
.mat-cab > p:not(.olho) { color: var(--tinta-2); }
.mat-cab .mat-meta { margin-top: .5rem; font-size: .9rem; font-weight: 600; color: var(--tinta-2); }
.ja { display: inline-flex; align-items: center; gap: .25em; color: var(--rosa-e); }
.ja .ic { width: 1em; height: 1em; }
.mat-acoes { padding: 1.1rem 1.1rem .3rem; display: flex; flex-direction: column; gap: .6rem; }
.mat-acoes .nota { margin-top: .2rem; }

/* ---------- Leitor ---------- */
#leitor { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; flex-direction: column; background: var(--papel); animation: surge .18s ease both; }
.leitor-barra { display: flex; align-items: center; gap: .6rem; padding: calc(.55rem + env(safe-area-inset-top)) .8rem .55rem; background: var(--cartao); border-bottom: 1px solid var(--linha); }
.leitor-voltar { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.9rem; padding: 0 1rem 0 .7rem; border-radius: 99px; background: var(--tinta); color: #fff; font-weight: 700; flex: none; }
.leitor-t { flex: 1; min-width: 0; font-family: var(--serifa); font-weight: 600; font-size: 1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leitor-corpo { position: relative; flex: 1; }
.leitor-corpo iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.leitor-carrega { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; padding: 0 2rem; color: var(--tinta-2); }
.leitor-carrega .ilu { width: 6rem; margin: 0 auto .5rem; }
.leitor-carrega p { font-weight: 700; color: var(--tinta); }
.leitor-carrega small { display: block; margin-top: .3rem; font-size: .86rem; }

/* ---------- Mais ---------- */
.capitulos { display: flex; flex-direction: column; gap: .55rem; }
.cap { width: 100%; text-align: left; display: flex; align-items: center; gap: .8rem; min-height: 4.3rem; padding: .7rem .85rem; border-radius: 18px; background: var(--cartao); border: 1px solid var(--linha); }
.cap-ic { width: 2.7rem; height: 2.7rem; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rosa-c); color: var(--rosa-e); }
.cap-t { flex: 1; min-width: 0; line-height: 1.25; }
.cap-t b { display: block; font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.12rem; }
.cap-t small { display: block; color: var(--tinta-2); font-size: .86rem; margin-top: .1rem; }
.cap > .seta { color: var(--rosa); }
.seta { width: 1em !important; height: 1em !important; }
.apagar { display: flex; margin: 1.6rem auto 0; font-size: .88rem; color: var(--tinta-2); font-weight: 500; text-decoration: underline; }
.texto > p { margin-bottom: .8rem; }
.texto .bt { margin-bottom: .6rem; }
.sec { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.3rem; line-height: 1.16; margin: 1.5rem 0 .6rem; padding-top: 1rem; border-top: 3px dotted #F6CADB; }
.texto > .sec:first-child { margin-top: .4rem; padding-top: 0; border-top: 0; }
.lista { margin: 0 0 .9rem 1.3rem; }
.lista li { margin-bottom: .5rem; padding-left: .2rem; }
.nota { padding: .85rem .95rem; border-radius: 16px; font-size: .96rem; line-height: 1.48; background: var(--blush); border: 1px solid #F9D7E3; }
.nota b:first-child { display: block; margin-bottom: .1rem; color: var(--rosa-e); }
.nota.dica { margin-top: 1rem; background: var(--manteiga-c); border-color: #F7E2A0; }
.nota.dica b:first-child { color: #8A5A00; }
.vazio { padding: 2rem 1rem; text-align: center; color: var(--tinta-2); }
.vazio .ilu { width: 8rem; margin: 0 auto 1rem; }

/* ---------- Temporizador ---------- */
.tempo-cx { background: var(--cartao); border: 1px solid var(--linha); border-radius: 24px; padding: 1.1rem 1rem 1rem; box-shadow: var(--sombra); }
.tempo-cx output { display: block; text-align: center; font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-size: 4.6rem; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; margin: .1rem 0 .8rem; }
.tempo-cx output.corre { color: var(--rosa-e); }
.tempo-ajuste { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: .6rem; }
.tempo-bts { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.tempo-dica { color: var(--tinta-2); text-align: center; padding: .5rem 0; }
.mini { font-size: 1rem; font-weight: 700; margin: 1.3rem 0 .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 1.05rem; border-radius: 99px; background: var(--cartao); border: 1.5px solid var(--linha); font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--tinta); border-color: var(--tinta); color: #fff; }

/* ---------- Navegação ---------- */
#nav {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 20;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom));
  background: var(--cartao); border-top: 1px solid var(--linha); box-shadow: 0 -8px 24px -12px rgba(60, 25, 59, .12);
}
#nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 3.35rem; border-radius: 14px; color: var(--tinta-2); font-size: .78rem; font-weight: 700; line-height: 1.1; }
#nav a .ic { width: 1.55rem; height: 1.55rem; }
#nav a.on { color: var(--rosa-e); background: var(--rosa-c); }
#pilula {
  position: fixed; right: max(1rem, calc(50% - 280px + 1rem)); bottom: calc(var(--nav) + .7rem + env(safe-area-inset-bottom)); z-index: 21;
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.8rem; padding: 0 1rem; border-radius: 99px;
  background: var(--tinta); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 8px 22px -6px rgba(60, 25, 59, .5);
}

/* ---------- Folha inferior e avisos ---------- */
#folha-fundo { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; background: rgba(60, 25, 59, .42); animation: surge .18s ease both; }
#folha {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; z-index: 71;
  background: var(--papel); border-radius: 26px 26px 0 0; padding: .6rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom));
  animation: folha .24s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes folha { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.pega { width: 2.6rem; height: 4px; border-radius: 4px; background: #EBCBD7; margin: 0 auto .9rem; }
#folha h2 { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.55rem; line-height: 1.14; margin-bottom: .45rem; }
#folha p { margin-bottom: .9rem; }
#folha .bt { margin-top: .5rem; }
.passos .ic { vertical-align: -.25em; color: var(--rosa); }
.letras { display: flex; flex-direction: column; gap: .5rem; }
.letras button { min-height: 3.5rem; border-radius: 16px; background: var(--cartao); border: 1.5px solid var(--linha); font-weight: 600; }
.letras button.on { border-color: var(--rosa); color: var(--rosa-e); background: var(--rosa-c); }
.fim { text-align: center; }
.fim .ilu { max-width: 150px; margin: 0 auto .4rem; }
#aviso {
  position: fixed; left: 50%; bottom: calc(6.4rem + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); z-index: 80;
  max-width: calc(100% - 2rem); width: max-content; padding: .65rem 1.05rem; border-radius: 16px; background: var(--tinta); color: #fff; font-size: .95rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
#aviso.ver { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 600px) {
  body { background: #F7E9EE; }
  #app { background: var(--papel); min-height: 100vh; box-shadow: 0 0 40px rgba(60, 25, 59, .08); }
  #leitor { max-width: 900px; margin: 0 auto; box-shadow: 0 0 40px rgba(60, 25, 59, .15); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
}
