/* Mapa — a bio no centro, o resto em ramos suspensos. Vidro, camadas e um fundo que respira.
   Tudo o que se mexe desliga com prefers-reduced-motion (a classe js-mov não existe). */

html.modo-mapa, html.modo-mapa body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.modo-mapa .rodape, html.modo-mapa .progresso { display: none; }

/* navegação de vidro por cima do mapa */
html.modo-mapa .nav { background: color-mix(in oklab, var(--osso) 55%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid color-mix(in oklab, var(--filete) 70%, transparent); }

html.modo-mapa .nav.sobre-terra { background: color-mix(in oklab, var(--carvao) 62%, transparent); border-bottom-color: rgba(242,237,228,.12); }

/* ——— o espaço ——— */
.mapa { position: fixed; inset: 0; overflow: hidden; background: var(--osso); color: var(--tinta);
  transition: transform .7s var(--e-gelo), filter .7s var(--e-gelo); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.mapa.recua { transform: scale(.94); filter: blur(6px) saturate(.9); }

/* fundo vivo: campos de cor que derivam, uma onda e pensamentos em suspensão */
.fundo-vivo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.campo i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: .55; mix-blend-mode: multiply; }
.campo .c1 { left: -18vmax; top: -22vmax; background: radial-gradient(closest-side, oklch(0.86 0.09 70), transparent); }
.campo .c2 { right: -24vmax; top: 4vmax; background: radial-gradient(closest-side, oklch(0.85 0.07 140), transparent); }
.campo .c3 { left: 10vmax; bottom: -34vmax; background: radial-gradient(closest-side, oklch(0.87 0.08 115), transparent); opacity: .5; }
.campo .c4 { left: 40%; top: 30%; width: 40vmax; height: 40vmax; background: radial-gradient(closest-side, oklch(0.93 0.04 90), transparent); opacity: .7; mix-blend-mode: normal; }
.js-mov .campo .c1 { animation: deriva-a 38s ease-in-out infinite alternate; }
.js-mov .campo .c2 { animation: deriva-b 46s ease-in-out infinite alternate; }
.js-mov .campo .c3 { animation: deriva-a 54s ease-in-out -12s infinite alternate-reverse; }
.js-mov .campo .c4 { animation: deriva-b 30s ease-in-out -6s infinite alternate; }
@keyframes deriva-a { to { transform: translate(14vmax, 10vmax) scale(1.18); } }
@keyframes deriva-b { to { transform: translate(-12vmax, 12vmax) scale(.86); } }

.onda { position: absolute; inset: 0; width: 100%; height: 100%; }
.onda path { fill: none; stroke-linecap: round; }
.onda .o1 { stroke: oklch(0.72 0.13 60 / .28); stroke-width: 1.4; }
.onda .o2 { stroke: oklch(0.62 0.10 140 / .26); stroke-width: 1.2; }
.onda .o3 { stroke: oklch(0.55 0.03 60 / .14); stroke-width: 1; }

.pensamentos { position: absolute; inset: -10%; transform: translate(var(--px, 0), var(--py, 0)); }
.pensamento { position: absolute; max-width: 22ch; font-weight: 200; font-size: clamp(18px, 2.2vw, 30px); line-height: 1.15; color: var(--tinta); opacity: 0; letter-spacing: -.01em; }
.js-mov .pensamento { animation: flutua var(--d, 60s) linear var(--a, 0s) infinite; }
@keyframes flutua {
  0% { opacity: 0; transform: translate(0, 24px); }
  12%, 80% { opacity: .075; }
  100% { opacity: 0; transform: translate(var(--dx, 60px), -60px); }
}
html:not(.js-mov) .pensamento { opacity: .08; }
.grao { position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ——— palco e mundo ——— */
.palco { position: absolute; inset: 0; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.palco.arrastando { cursor: grabbing; }
.mundo { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.arterias { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.arteria { fill: none; stroke: url(#g-arteria); stroke-width: 2; stroke-linecap: round; opacity: .6; }
.pulso { fill: none; stroke: var(--ambar); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 260; opacity: 0; filter: drop-shadow(0 0 4px oklch(0.72 0.13 60 / .9)); }
.js-mov .mapa.pronto .pulso { opacity: .9; animation: corre var(--t, 5s) linear var(--a, 0s) infinite; }
@keyframes corre { from { stroke-dashoffset: 262; } to { stroke-dashoffset: 0; } }
.capilar { fill: none; stroke: var(--filete); stroke-width: 1; stroke-dasharray: 2 6; opacity: .9; }
.ramo-fino { fill: none; stroke: var(--verde); stroke-width: 1.2; stroke-linecap: round; opacity: 0; transition: opacity .5s var(--e-saida), stroke-dashoffset .9s var(--e-gelo); }
.ramo-fino.aberto { opacity: .7; stroke-dashoffset: 0 !important; }

/* entrada: as artérias crescem a partir da bio */
.js-mov .mapa .arteria, .js-mov .mapa .capilar { stroke-dasharray: var(--comp) var(--comp); stroke-dashoffset: var(--comp); transition: stroke-dashoffset 1.4s var(--e-gelo) calc(var(--i, 0) * 90ms + 500ms); }
.js-mov .mapa.pronto .arteria, .js-mov .mapa.pronto .capilar { stroke-dashoffset: 0; }
.js-mov .mapa.pronto .capilar { stroke-dasharray: 2 6; }
.js-mov .mapa .no { opacity: 0; scale: .7; transition: opacity .8s var(--e-saida) calc(var(--i, 0) * 90ms + 900ms), scale 1s var(--e-gelo) calc(var(--i, 0) * 90ms + 900ms); }
.js-mov .mapa .no.centro { transition-delay: 100ms; }
.js-mov .mapa.pronto .no { opacity: 1; scale: 1; }

/* ——— nós ——— */
.no { position: absolute; left: 0; top: 0; translate: calc(var(--x, 0) * 1px - 50%) calc(var(--y, 0) * 1px - 50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; text-decoration: none; color: var(--tinta);
  background: linear-gradient(135deg, color-mix(in oklab, #fff 62%, transparent), color-mix(in oklab, var(--osso) 42%, transparent));
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid color-mix(in oklab, #fff 70%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 0 0 2px color-mix(in oklab, var(--filete) 45%, transparent), 0 18px 40px -18px rgba(20,17,14,.35), 0 4px 12px -6px rgba(20,17,14,.18);
  white-space: nowrap; transition: box-shadow .4s var(--e-saida), background .4s; }
.no:hover, .no:focus-visible, .no.perto { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 2px oklch(0.72 0.13 60 / .55), 0 24px 50px -18px rgba(20,17,14,.42), 0 0 34px -6px oklch(0.72 0.13 60 / .45); }
.no .bolha { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #fff, var(--osso) 60%, color-mix(in oklab, var(--ambar) 30%, var(--osso)));
  box-shadow: 0 0 0 1.5px oklch(0.72 0.13 60 / .55) inset; }
.no .bolha svg { width: 24px; height: 24px; fill: none; stroke: var(--carvao); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.no-texto { display: grid; gap: 2px; }
.no-nome { font-size: 19px; font-weight: 300; letter-spacing: -.005em; line-height: 1.1; }
.no-sub { font-size: 9.5px; letter-spacing: .18em; }

/* o nó da Anatomia é um reel: as fotos trocam devagar, com zoom lento */
.reel { position: absolute; inset: 0; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.reel img.agora { opacity: 1; }
.js-mov .reel img.agora { animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.18) translate(3%, 2%); } to { transform: scale(1); } }
.no.reel-no .bolha { width: 64px; height: 64px; }

/* o centro: a pessoa */
.no.centro { display: grid; justify-items: center; text-align: center; gap: 10px; width: 340px; padding: 0; border-radius: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; white-space: normal; }
.no.centro:hover, .no.centro.perto { box-shadow: none; }
.centro .doppler { position: absolute; left: 50%; top: 150px; width: 0; height: 0; z-index: -1; }
.centro .doppler i { position: absolute; left: -150px; top: -150px; width: 300px; height: 300px; border-radius: 50%; border: 2px solid oklch(0.74 0.13 65 / .5); opacity: 0; }
.js-mov .centro .doppler i { animation: doppler 8s cubic-bezier(.2,.6,.3,1) infinite; }
.js-mov .centro .doppler i:nth-child(2) { animation-delay: 2.7s; border-color: oklch(0.62 0.10 140 / .5); }
.js-mov .centro .doppler i:nth-child(3) { animation-delay: 5.4s; }
@keyframes doppler { 0% { transform: scale(.98); opacity: .7; } 100% { transform: scale(2.3); opacity: 0; } }

/* o coração do mapa: as verduras a flutuar num disco de vidro escuro */
.orbe-no { width: 300px; height: 300px; border-radius: 50%; display: block; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 50% 38%, #26331F 0%, #182016 46%, #0F130E 100%);
  box-shadow: 0 0 0 1px rgba(236,238,230,.18) inset, 0 0 0 3px var(--osso), 0 0 0 5px oklch(0.74 0.13 65 / .7), 0 40px 80px -26px rgba(22,26,20,.65), 0 0 90px -10px oklch(0.62 0.10 140 / .45);
  transition: transform .7s var(--e-gelo), box-shadow .5s; }
.orbe-no::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.16), transparent 42%), radial-gradient(circle at 50% 110%, oklch(0.74 0.13 65 / .22), transparent 50%); }
.orbe-no:hover { transform: scale(1.025); }
.orbe-no canvas { position: absolute; inset: -4%; width: 108%; height: 108%; display: block; }
.centro .orbe-legenda { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 1; color: #C8D2BF; font-size: 9.5px; letter-spacing: .24em; display: flex; gap: 10px; align-items: center; }
.centro .orbe-legenda::before, .centro .orbe-legenda::after { content: ""; width: 18px; height: 1px; background: rgba(236,238,230,.3); }
.centro .rotulo { margin-top: 12px; }
.centro h1 { font-size: 38px; line-height: 1; letter-spacing: -.02em; font-weight: 200; }
.centro .tese { font-size: 17px; line-height: 1.35; color: var(--tinta-2); max-width: 28ch; }
.centro .botao { margin-top: 6px; }

/* a foto vai para o topo, ao lado do nome */
.nav .nome { display: inline-flex; align-items: center; gap: 12px; }
.nome-foto { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--osso), 0 0 0 3.5px oklch(0.74 0.13 65 / .8); }

/* ramos finos */
.sub { position: absolute; left: 0; top: 0; translate: calc(var(--x, 0) * 1px - 50%) calc(var(--y, 0) * 1px - 50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--tinta);
  background: color-mix(in oklab, #fff 55%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid color-mix(in oklab, var(--verde) 45%, transparent); box-shadow: 0 10px 24px -14px rgba(20,17,14,.35);
  opacity: 0; scale: .6; pointer-events: none; transition: opacity .5s var(--e-saida), scale .7s var(--e-gelo), background .3s; }
.sub.aberto { opacity: 1; scale: 1; pointer-events: auto; }
.sub:hover, .sub:focus-visible { background: color-mix(in oklab, var(--ambar) 22%, #fff); }
.sub img { width: 18px; height: 18px; }

/* ——— interface do mapa ——— */
.mapa-ui { position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 14px; pointer-events: none; padding-inline: 16px; }
.dica { margin: 0; padding: 9px 14px; border-radius: 999px; background: color-mix(in oklab, var(--osso) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 10px; transition: opacity .6s; }
.dica.some { opacity: 0; }
.zoom { position: absolute; right: 16px; bottom: 0; display: flex; gap: 6px; pointer-events: auto; }
.zoom button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in oklab, #fff 70%, transparent); cursor: pointer; color: var(--tinta); font-size: 20px; font-weight: 300; display: grid; place-items: center;
  background: color-mix(in oklab, #fff 55%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 2px color-mix(in oklab, var(--filete) 45%, transparent), 0 10px 22px -12px rgba(20,17,14,.4); }
.zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ——— folha: o conteúdo abre por cima do mapa ——— */
.folha { position: fixed; inset: 0; z-index: 45; background: color-mix(in oklab, var(--osso) 90%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.2); backdrop-filter: blur(26px) saturate(1.2); }
.folha[hidden] { display: none; }
.js-mov .folha.abrindo { animation: abre-folha .75s var(--e-gelo) both; }
.js-mov .folha.fechando { animation: abre-folha .5s var(--e-saida) reverse both; }
@keyframes abre-folha { from { clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } }
.folha-rolo { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: 64px; padding-bottom: 96px; scroll-behavior: smooth; }
.folha-rolo > section, .folha-rolo > .contato { display: none; background: transparent; }
.folha-rolo > .terra { background: var(--terra); }
.folha-rolo > section.ativa { display: block; }
.js-mov .folha-rolo > section.ativa { animation: sobe .9s var(--e-gelo) .12s both; }
@keyframes sobe { from { opacity: 0; transform: translateY(28px); } }
.folha-topo { position: fixed; z-index: 2; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: color-mix(in oklab, #fff 60%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--filete) 50%, transparent), 0 18px 40px -16px rgba(20,17,14,.45); max-width: calc(100vw - 32px); }
.folha-fechar { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; background: var(--carvao); color: var(--osso); font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.folha-topo .rotulo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folha-seguir { max-width: var(--largura); margin: 0 auto; padding: 24px 24px 40px; display: grid; gap: 10px; }
.folha-seguir a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--r-lg); text-decoration: none; color: var(--tinta);
  background: linear-gradient(120deg, color-mix(in oklab, var(--ambar) 16%, var(--osso)), color-mix(in oklab, var(--verde) 14%, var(--osso))); border: 2px solid var(--filete); transition: transform .4s var(--e-gelo); }
.folha-seguir a:hover { transform: translateY(-2px); }
.folha-seguir strong { font-weight: 200; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.01em; }

/* ——— biblioteca ——— */
.estante { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 40px; }
.livro-fav { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 20px; border-radius: var(--r-lg); background: var(--superficie); border: 2px solid transparent; transition: border-color .3s; }
.livro-fav:hover { border-color: var(--filete); }
.lombada { border-radius: 6px 10px 10px 6px; min-height: 150px; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 22%, rgba(255,255,255,.12) 30%, transparent 40%), var(--l); display: grid; place-items: center; box-shadow: 0 14px 28px -16px rgba(20,17,14,.6); }
.lombada span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.92); }
.livro-fav h3 { font-size: 22px; font-weight: 300; margin: 8px 0 2px; line-height: 1.15; }
.livro-fav .autor { color: var(--tinta-2); font-size: 15px; }
.resenha { margin-top: 12px; font-size: 15.5px; color: var(--tinta-2); }
.resenha.rascunho { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border: 1.5px dashed oklch(0.72 0.13 60 / .8); border-radius: 8px; color: var(--acento); }

.clube-faixa { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-top: 36px; padding: 18px 22px; border-radius: var(--r-lg); text-decoration: none; color: var(--tinta);
  background: linear-gradient(120deg, oklch(0.74 0.13 65 / .16), oklch(0.62 0.10 140 / .16)); border: 2px solid var(--filete); }
.terra .clube-faixa { border-color: var(--terra-filete); }

/* ——— o clube ——— */
.clube { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.clube h2 { font-size: clamp(34px, 4.6vw, 62px); margin: 18px 0 24px; }
.clube p { color: var(--tinta-2); max-width: 46ch; }
.clube-caixa { padding: 28px; border-radius: var(--r-lg); background: linear-gradient(140deg, rgba(242,237,228,.08), rgba(242,237,228,.02)); border: 1px solid var(--terra-filete); box-shadow: 0 0 60px -20px oklch(0.72 0.13 60 / .35) inset; }
.clube-caixa .acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ——— telemóvel primeiro ——— */
@media (max-width: 700px) {
  .no { padding: 6px 14px 6px 6px; gap: 10px; }
  .no .bolha { width: 42px; height: 42px; }
  .no .bolha svg { width: 21px; height: 21px; }
  .no.reel-no .bolha { width: 52px; height: 52px; }
  .no-nome { font-size: 16.5px; }
  .no-sub { font-size: 8.5px; }
  .no.centro { width: 280px; gap: 8px; }
  .orbe-no { width: 236px; height: 236px; }
  .centro .doppler { top: 118px; }
  .centro .doppler i { left: -118px; top: -118px; width: 236px; height: 236px; }
  .nome-foto { width: 28px; height: 28px; }
  .nav .nome { gap: 9px; }
  .centro h1 { font-size: 30px; }
  .centro .tese { font-size: 15.5px; }
  .clube { grid-template-columns: 1fr; gap: 28px; }
  .estante { grid-template-columns: 1fr; }
  .zoom button[data-z="-1"], .zoom button[data-z="1"] { display: none; }
  .dica { font-size: 8.5px; letter-spacing: .1em; margin-right: 56px; white-space: nowrap; }
  .sub { font-size: 10px; padding: 8px 12px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .mapa, .folha-rolo { transition: none; scroll-behavior: auto; }
  .reel img { transition: none; }
}

/* ——— apps: à frente só o essencial; por dentro, o app a trabalhar ——— */
.grade.apps { align-items: start; }
.cartao.app { --cor: #4CB25A; --tela: #2B2C27; gap: 16px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in oklab, #fff 50%, transparent), color-mix(in oklab, var(--superficie) 70%, transparent));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid color-mix(in oklab, #fff 70%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 0 0 2px color-mix(in oklab, var(--filete) 40%, transparent), 0 24px 50px -30px rgba(22,26,20,.4);
  transition: transform .6s var(--e-gelo), box-shadow .5s; }
.cartao.app[data-app="ordua"] { --cor: #F07A3C; --tela: #131A26; }
.cartao.app[data-app="numa"] { --cor: #4FA3C4; --tela: #0F2E3B; }
.cartao.app::before { background: var(--cor); }
.cartao.app::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--cor) 22%, transparent), transparent 60%); }
.cartao.app:hover::after, .cartao.app.aberto::after { opacity: 1; }
.cartao.app.aberto { box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 0 0 2px color-mix(in oklab, var(--cor) 45%, transparent), 0 34px 70px -30px rgba(22,26,20,.5); }
.app-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartao.app .app-nome { font-size: 40px; display: flex; align-items: center; gap: 14px; }
.cartao.app .app-nome img { width: 44px; height: 44px; border-radius: 11px; }
.cartao.app .frase { font-size: 21px; line-height: 1.3; }
.app-revela { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--e-gelo); }
.app-revela > div { overflow: hidden; min-height: 0; display: grid; gap: 14px; }
.cartao.app.aberto .app-revela { grid-template-rows: 1fr; }
.cartao.app .desc { font-size: 15.5px; opacity: 0; transform: translateY(8px); transition: opacity .5s .25s, transform .6s var(--e-gelo) .25s; }
.cartao.app.aberto .desc { opacity: 1; transform: none; }
.app-ver { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; color: var(--tinta-2);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.app-ver .mais { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--filete-forte); font-size: 15px; transition: transform .5s var(--e-gelo), background .3s; }
.cartao.app.aberto .app-ver .mais { transform: rotate(45deg); background: var(--cor); border-color: var(--cor); color: #fff; }

/* o mini-ecrã */
.tela { margin-top: 4px; border-radius: 16px; padding: 14px 16px; background: var(--tela); color: #E8ECE3; font-size: 13px; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 18px 34px -20px rgba(0,0,0,.6); }
.tela::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 40%); }
.tela-cab, .tela-pe { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(232,236,227,.7); }
.tela-pe { margin-top: 12px; color: #E8ECE3; }
.tela-ex { color: rgba(232,236,227,.45); font-size: 9px; }
.tela .conta { font-variant-numeric: tabular-nums; color: var(--cor); }
/* ORDEN: a prep list marca-se sozinha */
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; transition: color .3s calc(var(--k) * .45s + .5s); }
.checks i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(232,236,227,.45); flex: none; position: relative; transition: background .25s calc(var(--k) * .45s + .5s), border-color .25s calc(var(--k) * .45s + .5s); }
.checks i::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: solid var(--tela); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--e-gelo) calc(var(--k) * .45s + .55s); }
.aberto .checks i { background: var(--cor); border-color: var(--cor); }
.aberto .checks i::after { transform: rotate(45deg) scale(1); }
.aberto .checks li { color: rgba(232,236,227,.55); }
.tela-barra { margin-top: 14px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.tela-barra b { display: block; height: 100%; width: 0; background: var(--cor); border-radius: inherit; transition: width 1.9s var(--e-saida) .5s; }
.aberto .tela-barra b { width: 100%; }
/* ORDUA: a escala preenche-se */
.escala { display: grid; grid-template-columns: 44px repeat(7, 1fr); gap: 4px; margin-top: 12px; align-items: center; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: rgba(232,236,227,.6); }
.escala .d { text-align: center; }
.escala .c { height: 16px; border-radius: 4px; background: rgba(255,255,255,.06); position: relative; overflow: hidden; }
.escala .c b { position: absolute; inset: 0; border-radius: inherit; background: var(--cor); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--e-gelo) calc(var(--k) * 45ms + .4s); }
.escala .c b.tarde { background: #F7B267; }
.aberto .escala .c b { transform: scaleX(1); }
/* NUMA: CMV real contra o teórico */
.cmv { position: relative; display: grid; gap: 12px; margin-top: 14px; padding-bottom: 18px; }
.cmv-linha { display: grid; grid-template-columns: 60px 1fr 44px; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.cmv-linha strong { font-weight: 400; text-align: right; font-size: 13px; }
.cmv-trilho { height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.cmv-trilho b { display: block; height: 100%; width: 0; border-radius: inherit; background: color-mix(in oklab, var(--cor) 60%, #fff); transition: width 1.4s var(--e-saida) .45s; }
.cmv-linha.real .cmv-trilho b { background: #F7B267; transition-delay: .75s; }
.aberto .cmv-trilho b { width: var(--w); }
.cmv-meta { position: absolute; top: -4px; bottom: 0; left: calc(70px + (100% - 70px - 54px) * .75); width: 0; border-left: 1.5px dashed rgba(232,236,227,.6); font-style: normal; }
.cmv-meta span { position: absolute; bottom: 0; left: 6px; white-space: nowrap; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(232,236,227,.7); }
html:not(.js-mov) .tela * { transition: none !important; }

@media (hover: hover) and (pointer: fine) { .app-ver { display: none; } }
@media (max-width: 420px) { html.modo-mapa .nav .nome { font-size: 9px; letter-spacing: .05em; max-width: none; } }

/* ——— estante flutuante: livros, workbooks e biblioteca deslizam para o lado ——— */
.estante-moldura { position: relative; margin-inline: calc(50% - 50vw); }
.folha-rolo .prateleira, .folha-rolo .estante { display: flex; grid-template-columns: none; gap: 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 26px max(24px, calc(50vw - 590px + 24px)) 42px; margin: 0; scrollbar-width: none; scroll-padding-inline: max(24px, calc(50vw - 590px + 24px));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
.folha-rolo .prateleira::-webkit-scrollbar, .folha-rolo .estante::-webkit-scrollbar { display: none; }
.estante-moldura.arrastando .prateleira, .estante-moldura.arrastando .estante { scroll-snap-type: none; cursor: grabbing; }
.folha-rolo .prateleira > *, .folha-rolo .estante > * { flex: 0 0 clamp(250px, 72vw, 300px); scroll-snap-align: start; transform: perspective(1000px) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transition: transform .25s linear, box-shadow .4s, border-color .3s; will-change: transform; }
.folha-rolo .prateleira > .cartao, .folha-rolo .estante > .livro-fav { border-radius: 26px;
  background: linear-gradient(160deg, color-mix(in oklab, #fff 52%, transparent), color-mix(in oklab, var(--superficie) 55%, transparent));
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid color-mix(in oklab, #fff 72%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 26px 50px -30px rgba(22,26,20,.45); }
.folha-rolo .prateleira > .cartao:hover { transform: perspective(1000px) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)) translateY(-6px); }
.estante-setas { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; padding-inline: max(10px, calc(50vw - 590px - 10px)); pointer-events: none; translate: 0 -50%; }
.estante-setas button { pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid color-mix(in oklab, #fff 70%, transparent); cursor: pointer; font-size: 18px; color: var(--tinta);
  background: color-mix(in oklab, #fff 60%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 26px -14px rgba(22,26,20,.5); transition: opacity .3s, transform .3s var(--e-gelo); }
.estante-setas button:hover { transform: scale(1.08); }
.estante-setas button[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .estante-setas { display: none; } }
/* biblioteca: na estante, o livro mostra a capa */
.folha-rolo .estante > .livro-fav { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.folha-rolo .estante .lombada { min-height: 0; aspect-ratio: 3 / 4; border-radius: 16px; place-items: end start; padding: 18px; }
.folha-rolo .estante .lombada span { writing-mode: horizontal-tb; transform: none; font-size: 12px; line-height: 1.4; }
/* ——— gaveta dos livros: o resto do texto sobe numa cor de contraste ——— */
.folha-rolo .com-gaveta { position: relative; overflow: hidden; cursor: default; }
.gaveta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 12px; padding: 22px 22px 20px; border-radius: 22px 22px 0 0;
  background: linear-gradient(175deg, #2A3A24 0%, #1A2317 70%, #141B12 100%); color: #ECEEE6;
  box-shadow: 0 -24px 48px -24px rgba(10,14,9,.6), 0 1px 0 rgba(255,255,255,.08) inset;
  transform: translateY(102%); transition: transform .6s var(--e-gelo); }
.gaveta::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: linear-gradient(90deg, var(--ambar), #A9CC8A); border-radius: 2px; }
.gaveta > * { opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .55s var(--e-gelo); }
.gaveta-titulo { font-size: 22px; font-weight: 300; line-height: 1.15; letter-spacing: -.005em; }
.gaveta .desc, .gaveta .resenha { color: rgba(236,238,230,.84); font-size: 15px; line-height: 1.5; margin: 0; }
.gaveta .resenha.rascunho { color: #E9C27A; border-color: rgba(233,194,122,.6); }
.gaveta .pe { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gaveta .preco { color: #ECEEE6; }
.gaveta .link-seta { color: #B9DB98; }
.com-gaveta:hover .gaveta, .com-gaveta:focus-within .gaveta, .com-gaveta.aberto .gaveta { transform: none; }
.com-gaveta:hover .gaveta > *, .com-gaveta:focus-within .gaveta > *, .com-gaveta.aberto .gaveta > * { opacity: 1; transform: none; }
.gaveta > :nth-child(1) { transition-delay: .12s; } .gaveta > :nth-child(2) { transition-delay: .2s; } .gaveta > :nth-child(3) { transition-delay: .28s; }
.com-gaveta:hover .capa .titulo-capa, .com-gaveta.aberto .capa .titulo-capa { transform: translateY(-18%) scale(.96); }
.com-gaveta .capa .titulo-capa { transition: transform .7s var(--e-gelo); }
/* sinal de que há mais, só no toque */
@media (hover: none) {
  .com-gaveta::after { content: "+"; position: absolute; right: 16px; bottom: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #ECEEE6; background: #24321F; transition: transform .4s var(--e-gelo), opacity .3s; z-index: 1; }
  .com-gaveta.aberto::after { opacity: 0; transform: rotate(45deg); }
}
html:not(.js-mov) .gaveta, html:not(.js-mov) .gaveta > * { transition: none; }

/* ——— carrossel dos livros: um em destaque à frente, os outros recuam, translúcidos ——— */
.carrossel { position: relative; margin-inline: calc(50% - 50vw); overflow: hidden; padding-block: 18px 6px; }
.folha-rolo .carrossel > .prateleira, .folha-rolo .carrossel > .estante, .folha-rolo .carrossel > .cidades { display: block; position: relative; height: var(--alto, 460px); margin: 0; padding: 0; overflow: visible;
  perspective: 1300px; touch-action: pan-y; cursor: grab; outline: none; -webkit-mask-image: none; mask-image: none; }
.carrossel.arrastando > * { cursor: grabbing; }
.carrossel > .prateleira > *, .carrossel > .estante > *, .carrossel > .cidades > * { position: absolute; left: 50%; top: 10px; width: var(--cw, 240px); margin: 0 0 0 calc(var(--cw, 240px) / -2);
  transform-origin: 50% 60%; will-change: transform, opacity; transition: box-shadow .5s, border-color .5s; -webkit-user-select: none; user-select: none; }
.carrossel > .prateleira > .cartao, .carrossel > .estante > .livro-fav { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 18px; border-radius: 26px;
  background: linear-gradient(180deg, #26311F 0%, #161C13 62%, #10140D 100%); color: #ECEEE6; border: 1px solid rgba(236,238,230,.09);
  box-shadow: 0 34px 60px -30px rgba(10,14,9,.75), 0 1px 0 rgba(255,255,255,.07) inset; }
.carrossel .cartao::before { display: none; }
.carrossel > * > .ativo { border-color: rgba(169,204,138,.45); box-shadow: 0 44px 80px -30px rgba(10,14,9,.8), 0 0 0 1px rgba(169,204,138,.25), 0 0 60px -12px oklch(0.74 0.13 65 / .35); }
.carrossel .capa, .carrossel .lombada { border-radius: 18px; margin: 0; aspect-ratio: 4 / 5; min-height: 0; }
.carrossel .capa::after { inset: 10px; border-color: rgba(255,255,255,.18); }
.carrossel .estado { color: #DCE3D5; border-color: rgba(236,238,230,.25); font-size: 9.5px; margin-inline: 4px; }
.carrossel .cartao h3, .carrossel .livro-fav h3 { font-size: 21px; font-weight: 300; line-height: 1.15; margin: 0 6px; color: #F3F5EE; }
.carrossel .livro-fav .rotulo, .carrossel .livro-fav .autor { margin-inline: 6px; color: rgba(236,238,230,.62); }
.carrossel .livro-fav h3 { margin-top: 2px; }
.carrossel .livro-fav > div:last-child { display: grid; gap: 2px; }
.carrossel .lombada { place-items: end start; padding: 18px; }
.carrossel .lombada span { writing-mode: horizontal-tb; transform: none; font-size: 12px; line-height: 1.4; }
/* o texto longo não vive no card: aparece por baixo, do livro em destaque */
.carrossel > * > * .desc, .carrossel > * > * .pe, .carrossel > * > * .resenha { display: none; }
.carrossel-legenda { max-width: 520px; margin: 4px auto 0; padding: 0 24px; text-align: center; display: grid; gap: 14px; justify-items: center; min-height: 150px; transition: opacity .35s, transform .45s var(--e-gelo); }
.carrossel-legenda.troca { opacity: 0; transform: translateY(8px); }
.carrossel-legenda .titulo-leg { font-size: 26px; font-weight: 200; line-height: 1.1; }
.carrossel-legenda .desc, .carrossel-legenda .resenha { color: var(--tinta-2); font-size: 16px; line-height: 1.5; margin: 0; }
.carrossel-legenda .pe { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 0; }
.carrossel-pontos { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.carrossel-pontos button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: var(--filete-forte); cursor: pointer; transition: width .4s var(--e-gelo), background .3s; }
.carrossel-pontos button[aria-current="true"] { width: 26px; background: var(--acento); }
.carrossel-setas { position: absolute; top: calc(var(--alto, 460px) / 2); left: 50%; width: min(860px, 100vw - 24px); translate: -50% -50%; display: flex; justify-content: space-between; pointer-events: none; z-index: 200; }
.carrossel-setas button { pointer-events: auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid color-mix(in oklab, #fff 70%, transparent); cursor: pointer; font-size: 18px; color: var(--tinta);
  background: color-mix(in oklab, #fff 62%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 26px -14px rgba(22,26,20,.5); transition: opacity .3s, transform .3s var(--e-gelo); }
.carrossel-setas button:hover { transform: scale(1.08); }
.carrossel-setas button[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .carrossel-setas { display: none; } }
.terra .carrossel-legenda .desc { color: var(--terra-tinta-2); }

/* guias das cidades no carrossel: cada cidade é um cartão alto, da sua cor */
.carrossel > .cidades > .cidade { min-height: 0; aspect-ratio: 3 / 4; padding: 22px 20px; border-radius: 26px; box-shadow: 0 34px 60px -30px rgba(10,14,9,.6), 0 1px 0 rgba(255,255,255,.18) inset; }
.carrossel > .cidades > .cidade strong { font-size: 34px; }
.carrossel > .cidades > .cidade.ativo { box-shadow: 0 44px 80px -30px rgba(10,14,9,.7), 0 0 0 2px rgba(255,255,255,.35); }
.carrossel > .cidades .cidade-mais { display: none; }
/* livro com capa de verdade */
.capa.capa-img { background: #E9E4D6; }
.capa.capa-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.capa.capa-img::after { display: none; }

/* as três coleções da Alanita e Zezé */
.serie-intro { max-width: 56ch; color: var(--tinta-2); margin: -6px 0 8px; }
.serie-cab { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: baseline; margin: 44px 0 0; padding-top: 22px; border-top: 2px solid var(--filete); }
.serie-cab .rotulo { font-size: 13px; }
.serie-cab h4 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 200; letter-spacing: -.01em; }
.serie-cab p { grid-column: 2; margin: 0; max-width: 60ch; color: var(--tinta-2); font-size: 16px; }

/* nota do autor: a voz do Marcelo em cada espaço */
.nota-autor { display: grid; grid-template-columns: 56px 1fr; gap: 20px; margin: 26px 0 8px; padding: 28px 30px; border-radius: 26px; max-width: 760px;
  background: linear-gradient(150deg, color-mix(in oklab, #fff 55%, transparent), color-mix(in oklab, var(--superficie) 60%, transparent));
  border: 1px solid color-mix(in oklab, #fff 70%, transparent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--filete) 40%, transparent), 0 26px 50px -30px rgba(22,26,20,.35); position: relative; }
.nota-autor::before { content: "“"; position: absolute; right: 26px; top: 4px; font-size: 96px; font-weight: 200; line-height: 1; color: oklch(0.74 0.13 65 / .45); }
.nota-foto { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--osso), 0 0 0 3.5px oklch(0.74 0.13 65 / .8); }
.nota-autor > div { display: grid; gap: 14px; }
.nota-autor p { font-size: 18px; line-height: 1.6; color: var(--tinta); max-width: 62ch; }
.nota-autor strong { font-weight: 400; background: linear-gradient(transparent 62%, oklch(0.74 0.13 65 / .32) 62%); }
.nota-assina { font-size: 22px; font-weight: 200; letter-spacing: .01em; color: var(--tinta-2); }
@media (max-width: 700px) {
  .nota-autor { grid-template-columns: 1fr; padding: 24px 22px; gap: 14px; }
  .nota-autor p { font-size: 16.5px; }
}

/* livro do mês: um destaque grande, com a nota do Marcelo */
.livro-mes { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 36px; align-items: center; margin-top: 40px; padding: 30px; border-radius: 30px;
  background: linear-gradient(140deg, #26311F 0%, #161C13 70%); color: #ECEEE6; box-shadow: 0 40px 80px -40px rgba(10,14,9,.7), 0 0 0 1px rgba(236,238,230,.08) inset; position: relative; overflow: hidden; }
.livro-mes::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, oklch(0.74 0.13 65 / .28), transparent); pointer-events: none; }
.livro-mes-capa .lombada { aspect-ratio: 3 / 4; min-height: 0; border-radius: 16px; place-items: end start; padding: 20px; transform: rotate(-3deg); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); }
.livro-mes-capa .lombada span { writing-mode: horizontal-tb; transform: none; font-size: 13px; line-height: 1.4; }
.livro-mes-texto { display: grid; gap: 12px; position: relative; z-index: 1; }
.livro-mes-texto .rotulo { color: #E9C27A; }
.livro-mes-texto h3 { font-size: clamp(40px, 5vw, 64px); font-weight: 200; line-height: 1; }
.livro-mes-texto .autor { color: rgba(236,238,230,.65); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.livro-mes-texto p:not(.autor) { font-size: 18px; line-height: 1.6; color: rgba(236,238,230,.9); max-width: 58ch; }
.livro-mes-texto .nota-assina { color: rgba(236,238,230,.7); }
.meses { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin-top: 18px; color: var(--tinta-2); }
.meses p { font-size: 15px; }
@media (max-width: 700px) {
  .livro-mes { grid-template-columns: 1fr; padding: 24px 22px; gap: 22px; }
  .livro-mes-capa { max-width: 200px; }
}

/* ferramentas úteis */
.ferramentas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.ferr-grupo { padding: 22px; border-radius: 22px; background: linear-gradient(160deg, color-mix(in oklab, #fff 50%, transparent), color-mix(in oklab, var(--superficie) 60%, transparent)); border: 1px solid color-mix(in oklab, #fff 70%, transparent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--filete) 40%, transparent); }
.ferr-links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ferr-links:empty::before { content: "—"; color: var(--tinta-3); }
.ferr-vazio { margin-top: 18px; color: var(--tinta-2); font-size: 15px; }
@media (max-width: 860px) { .ferramentas { grid-template-columns: 1fr; } }

/* Alanita e Zezé: as três séries lado a lado, cada uma com o seu carrossel */
.series { display: grid; gap: 34px; margin-top: 10px; }
.serie { min-width: 0; }
.series .serie-cab { margin-top: 30px; }
.series .carrossel { margin-inline: 0; }
.series .carrossel-setas { width: calc(100% + 8px); }
.series .carrossel-legenda { padding: 0 6px; }
@media (min-width: 1100px) {
  .series { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .series .serie-cab { grid-template-columns: auto 1fr; min-height: 150px; align-content: start; }
  .series .serie-cab p { font-size: 14.5px; }
  .series .carrossel-setas button { width: 40px; height: 40px; font-size: 16px; }
}

/* capas reais (Open Library) */
.lombada.capa-real { padding: 0 !important; overflow: hidden; background: #E6E1D6; display: block; }
.lombada.capa-real img { width: 100%; height: 100%; object-fit: cover; display: block; }
.livro-mes-capa .lombada.capa-real { aspect-ratio: auto; }
.livro-mes-capa .lombada.capa-real img { height: auto; }

/* ——— capas desenhadas (Alanita e Zezé) ——— */
.capa.desenhada { background: var(--fundo); color: var(--tinta-capa); display: block; overflow: hidden; position: relative; }
.capa.desenhada::after { inset: 10px; border-color: color-mix(in oklab, var(--tinta-capa) 22%, transparent); border-radius: 12px; }
.capa.desenhada::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(255,255,255,.35), transparent 50%); pointer-events: none; }
.capa.desenhada.misterios::before { background: radial-gradient(circle at 70% 30%, rgba(233,194,122,.16), transparent 55%); }
.capa-serie { position: absolute; left: 18px; top: 18px; right: 18px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; z-index: 1; line-height: 1.4; }
.capa.desenhada .titulo-capa { position: absolute; left: 18px; right: 18px; top: 40px; text-align: left; display: grid; gap: 4px; z-index: 1; font-size: 21px; line-height: 1.08; font-weight: 300; letter-spacing: -.01em; }
.capa.desenhada .capa-cidade { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.capa-ilus { position: absolute; left: 8%; right: 8%; bottom: 14%; width: 84%; height: auto; }
.capa-patas { position: absolute; left: 6%; bottom: 7%; width: 88%; height: auto; }
.capa-autor { position: absolute; left: 18px; bottom: 14px; font-family: var(--mono); font-size: 7px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.produto:hover .capa.desenhada .capa-ilus { transform: translateY(-3px) scale(1.02); }
.capa-ilus { transition: transform .8s var(--e-gelo); }

/* ——— folhear: prévia de páginas ——— */
.folhear { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--filete-forte); background: color-mix(in oklab, #fff 55%, transparent); color: var(--tinta); cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; transition: background .3s, transform .3s var(--e-gelo); }
.folhear:hover { background: #fff; transform: translateY(-1px); }
.folhear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.gaveta .folhear { color: #ECEEE6; border-color: rgba(236,238,230,.35); background: rgba(255,255,255,.06); }
.leitor { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; background: rgba(14,18,12,.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: #ECEEE6; }
.leitor[hidden] { display: none; }
.js-mov .leitor.abre { animation: leitor-entra .45s var(--e-gelo) both; }
@keyframes leitor-entra { from { opacity: 0; } }
.leitor-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.leitor-topo strong { font-weight: 300; font-size: 18px; }
.leitor-topo .rotulo { color: rgba(236,238,230,.6); display: block; margin-bottom: 2px; }
.leitor-fechar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(236,238,230,.25); background: rgba(255,255,255,.06); color: #ECEEE6; font-size: 20px; cursor: pointer; flex: none; }
.leitor-palco { position: relative; display: grid; place-items: center; overflow: hidden; perspective: 2000px; touch-action: pan-y; padding: 0 64px; }
.leitor-livro { display: flex; justify-content: center; align-items: center; gap: 0; max-height: 100%; transition: transform .5s var(--e-gelo), opacity .35s; }
.leitor-livro.vira-dir { transform: rotateY(-8deg) translateX(-24px); opacity: 0; }
.leitor-livro.vira-esq { transform: rotateY(8deg) translateX(24px); opacity: 0; }
.leitor-livro img { display: block; max-height: calc(100svh - 200px); max-width: min(46vw, 640px); width: auto; height: auto; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); background: #fff; }
.leitor-livro img + img { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 14px 0 18px -14px rgba(0,0,0,.25); }
.leitor-livro img:first-child:not(:only-child) { border-radius: 6px 0 0 6px; }
.leitor-livro img:last-child:not(:only-child) { border-radius: 0 6px 6px 0; }
.leitor-livro img:only-child { border-radius: 6px; max-width: min(84vw, 640px); }
.leitor-fim { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 420px; padding: 30px; }
.leitor-fim h4 { margin: 0; font-size: 30px; font-weight: 200; }
.leitor-fim p { color: rgba(236,238,230,.75); }
.leitor-seta { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(236,238,230,.25); background: rgba(255,255,255,.08); color: #ECEEE6; font-size: 18px; cursor: pointer; z-index: 2; }
.leitor-seta.ant { left: 12px; } .leitor-seta.prox { right: 12px; }
.leitor-seta[disabled] { opacity: 0; pointer-events: none; }
.leitor-pe { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 14px 20px 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(236,238,230,.7); }
@media (max-width: 700px) {
  .leitor-palco { padding: 0 8px; }
  .leitor-livro img:only-child, .leitor-livro img { max-width: 94vw; }
  .leitor-seta { display: none; }
}
/* capas desenhadas: tudo proporcional à largura da capa */
.capa.desenhada { container-type: inline-size; }
.capa.desenhada .titulo-capa { font-size: 10.5cqw; top: 15cqw; left: 8cqw; right: 8cqw; }
.capa.desenhada .capa-cidade { font-size: 4.2cqw; }
.capa-serie { font-size: 3.6cqw; left: 8cqw; top: 7cqw; right: 8cqw; }
.capa-ilus { width: 62cqw; left: auto; right: 5cqw; bottom: 13cqw; }
.capa-patas { bottom: 6cqw; }
.capa-autor { font-size: 3.2cqw; left: 8cqw; bottom: 5cqw; }
.nota-autor::before { content: none; }

/* reels em todos os nós */
.no.com-reel .bolha svg { opacity: 0; }
.reel-logo { background: #F7F5EE; }
.reel-logo img { object-fit: contain; padding: 9px; }
.js-mov .reel-logo img.agora { animation: logo-entra .9s var(--e-gelo) both; }
@keyframes logo-entra { from { transform: scale(.7) rotate(-8deg); } to { transform: none; } }
.reel-capa img { object-position: 50% 30%; }

/* ═══ desempenho (01/10): o mesmo visual, sem engasgar ═══
   - nada de desfoque de fundo (backdrop-filter) sobre o mapa em movimento nem dentro da folha:
     o vidro passa a ser desenhado com gradiente, borda e brilho (custa zero por fotograma);
   - manchas de cor sem filter: blur nem mix-blend (o gradiente radial já é macio);
   - o mapa pára por baixo quando a folha está aberta. */
.campo i { filter: none !important; mix-blend-mode: normal !important; opacity: .5; will-change: transform; }
.campo .c4 { opacity: .55; }
.pulso { filter: none !important; stroke-width: 3.2; }
.no { -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: linear-gradient(135deg, rgba(255,255,255,.86), color-mix(in oklab, var(--osso) 82%, #fff) 60%, color-mix(in oklab, var(--osso) 92%, var(--ambar))) !important; }
.no.centro { background: none !important; }
.sub { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(255,255,255,.82); }
.sub:hover, .sub:focus-visible { background: color-mix(in oklab, var(--ambar) 22%, #fff); }
.zoom button, .dica { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(255,255,255,.8); }
.dica { background: rgba(239,239,229,.85); }
html.modo-mapa .nav { -webkit-backdrop-filter: blur(10px) !important; backdrop-filter: blur(10px) !important; background: color-mix(in oklab, var(--osso) 78%, transparent); }
.mapa.recua { filter: none !important; transform: scale(.97); }
.folha { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--osso); }
.folha-topo { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(255,255,255,.92); }
.folha .cartao.app, .folha-rolo .prateleira > .cartao, .folha-rolo .estante > .livro-fav, .estante-setas button, .carrossel-setas button {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.cartao.app { background: linear-gradient(160deg, rgba(255,255,255,.75), color-mix(in oklab, var(--superficie) 85%, #fff)); }
.folha-rolo .prateleira > .cartao, .folha-rolo .estante > .livro-fav { background: linear-gradient(160deg, rgba(255,255,255,.8), color-mix(in oklab, var(--superficie) 80%, #fff)); }
.estante-setas button, .carrossel-setas button { background: rgba(255,255,255,.88); }
.leitor { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(14,18,12,.92); }
/* com a folha aberta, tudo o que mexe no mapa pára */
html.folha-aberta .mapa *, html.folha-aberta .mapa *::before, html.folha-aberta .mapa *::after { animation-play-state: paused !important; }
html.mapa-oculto .mapa { visibility: hidden; }
/* camadas que se movem ganham o seu próprio plano na GPU; o resto não */
.mundo { will-change: transform; contain: layout style; }
.pensamentos { will-change: transform; }
.carrossel > .prateleira > *, .carrossel > .estante > *, .carrossel > .cidades > * { will-change: transform, opacity; backface-visibility: hidden; }
.folha-rolo { contain: strict; }
.folha-rolo > section { content-visibility: auto; contain-intrinsic-size: auto 1200px; }

/* newsletter dentro do Contato */
.contato .newsletter { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--terra-filete); }
/* contato com 4 canais: 2x2 no computador, 1 coluna no celular */
@media (min-width: 761px) { .contato .canais { grid-template-columns: repeat(2, 1fr); } }
