/* Estante — iBooks clássico (iOS 4–6): madeira, couro, vidro e tabelas agrupadas com riscas. */
:root {
  --madeira: #c4935c;
  --madeira-escura: #8a5a2f;
  --barra-1: #a27a52;
  --barra-2: #6b4728;
  --barra-borda: #3b2613;
  --texto: #1d1d1f;
  --texto-2: #4c566c;
  --azul: #2f7df6;
  --risca-1: #c5ccd4;
  --risca-2: #cbd2d9;
  --celula: #fff;
  --linha: #d9d9d9;
  --verde-1: #77d16d;
  --verde-2: #2f9a1f;
  --vermelho-1: #ef6a62;
  --vermelho-2: #b7140b;
  --topo: env(safe-area-inset-top, 0px);
  --base: env(safe-area-inset-bottom, 0px);
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.11' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.12 0 0 0 0 0.03 1.25 0 0 0 -0.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font: 17px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--texto);
  background: var(--madeira) var(--grao);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#app { display: flex; flex-direction: column; height: 100dvh; }
.conteudo { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* ---------- barra de navegação (couro marrom com brilho) ---------- */
.nav {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  min-height: calc(44px + var(--topo)); padding: var(--topo) 6px 0;
  background: linear-gradient(var(--barra-1), var(--barra-2));
  border-bottom: 1px solid var(--barra-borda);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 3px rgba(0,0,0,.35);
}
.nav h1 {
  grid-column: 2; margin: 0; max-width: 56vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 20px; font-weight: bold; color: #fff; text-align: center;
  text-shadow: 0 -1px 0 rgba(0,0,0,.55);
}
.nav .esq { grid-column: 1; justify-self: start; }
.nav .dir { grid-column: 3; justify-self: end; }
.botao-barra {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 0 10px; border-radius: 5px;
  border: 1px solid rgba(40,22,6,.85); color: #fff; font-size: 13px; font-weight: bold;
  text-shadow: 0 -1px 0 rgba(0,0,0,.5);
  background: linear-gradient(#9b7350, #5d3b1e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 rgba(255,255,255,.18);
}
.botao-barra:active { background: linear-gradient(#5d3b1e, #7b5534); }
/* botão de voltar em seta: borda escura por fora (filter) e o corpo recortado em ponta */
.voltar-borda { display: inline-block; filter: drop-shadow(0 0 0.6px rgba(40,22,6,1)) drop-shadow(0 1px 0 rgba(255,255,255,.18)); }
.voltar {
  display: inline-flex; align-items: center; padding: 0 10px 0 16px; border: 0; border-radius: 5px;
  clip-path: polygon(0 50%, 11px 0, 100% 0, 100% 100%, 11px 100%);
}
.avatar-barra { display: inline-flex; align-items: center; gap: 6px; }
.avatar-barra .bolinha { width: 22px; height: 22px; font-size: 12px; }

/* ---------- barra de ferramentas com segmentos ---------- */
.ferramentas {
  padding: 7px 8px;
  background: linear-gradient(#8e6844, #6f4d2d);
  border-bottom: 1px solid var(--barra-borda);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.segmentos {
  display: flex; width: 100%;
  border: 1px solid rgba(40,22,6,.9); border-radius: 5px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.18);
}
.segmentos button {
  flex: 1; min-height: 30px; padding: 0 2px; border: 0; border-left: 1px solid rgba(40,22,6,.8);
  font-size: 12px; font-weight: bold; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.5);
  background: linear-gradient(#a27b56, #6a4626);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.segmentos button:first-child { border-left: 0; }
.segmentos button[aria-pressed="true"] {
  background: linear-gradient(#4f3117, #714c2b);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.55);
}
.segmentos.claro { border-color: #8d8d8d; box-shadow: 0 1px 0 #fff; }
.segmentos.claro button {
  color: #4c566c; text-shadow: 0 1px 0 #fff; border-left-color: #a9a9a9;
  background: linear-gradient(#fdfdfd, #dcdcdc);
  box-shadow: none;
}
.segmentos.claro button[aria-pressed="true"] {
  color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  background: linear-gradient(#5aa1f4, #2368d8);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}

/* ---------- prateleiras ---------- */
.prateleiras { padding: 6px 12px calc(20px + var(--base)); }
.prateleira {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; align-items: end;
  min-height: 186px; padding: 18px 6px 0;
}
.prateleira::after {
  content: ""; position: absolute; left: -12px; right: -12px; bottom: -16px; height: 22px; z-index: 0;
  background:
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,0) 2px),
    linear-gradient(#dcae7b 0 6px, #a2703f 6px, #7a4e26 100%),
    var(--grao);
  box-shadow: 0 7px 9px -3px rgba(0,0,0,.55), inset 0 -1px 0 rgba(0,0,0,.35);
}
.prateleira + .prateleira { margin-top: 26px; }
.livro-capa {
  position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center;
  height: 160px; padding: 0; border: 0; background: none;
}
.livro-capa img, .capa-falsa {
  display: block; max-width: 100%; max-height: 160px;
  box-shadow: 0 3px 6px rgba(0,0,0,.55), 0 0 1px rgba(0,0,0,.6);
}
.livro-capa img { width: auto; height: auto; }
/* lombada: brilho e sombra na esquerda, como no iBooks */
.livro-capa .brilho {
  position: absolute; pointer-events: none; bottom: 0; top: auto;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.25) 3px, rgba(255,255,255,0) 7px, rgba(255,255,255,0) 100%);
}
.capa-falsa {
  width: 100%; height: 150px; padding: 12px 8px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; text-align: center;
  color: #f6eedc; font-family: Georgia, "Times New Roman", serif;
  background-image: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.12) 4px, rgba(0,0,0,0) 9px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, rgba(0,0,0,.04) 2px 4px);
}
.capa-falsa b { font-size: 14px; line-height: 1.15; text-shadow: 0 1px 1px rgba(0,0,0,.5); }
.capa-falsa i { font-size: 11px; opacity: .85; }
.fita {
  position: absolute; z-index: 2; top: 6px; right: -4px; padding: 2px 7px;
  font-size: 10px; font-weight: bold; letter-spacing: .04em; color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,.45); border-radius: 2px 0 0 2px;
  background: linear-gradient(#5fa7ff, #1d5fcf); box-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.fita.lido { background: linear-gradient(#7fd36e, #2f8a1e); }
.fita.abandonado { background: linear-gradient(#b0b0b0, #6d6d6d); }
.fita.quero { background: linear-gradient(#f2b84b, #c07a0b); }
.rodape-madeira {
  margin: 34px 0 0; text-align: center; font-size: 13px; font-weight: bold; color: #f6e7d0;
  text-shadow: 0 -1px 0 rgba(0,0,0,.45);
}
.vazio-madeira { padding: 60px 24px; text-align: center; color: #fff6ea; text-shadow: 0 -1px 0 rgba(0,0,0,.5); }
.vazio-madeira p { margin: 0 0 18px; font-size: 19px; font-weight: bold; }

/* ---------- tabela agrupada (fundo com riscas) ---------- */
.riscas {
  background: repeating-linear-gradient(90deg, var(--risca-1) 0 5px, var(--risca-2) 5px 7px);
}
.grupo { margin: 18px 10px; }
.grupo > h2 {
  margin: 0 10px 7px; font-size: 17px; color: var(--texto-2); text-shadow: 0 1px 0 #fff;
}
.grupo > .nota-rodape { margin: 7px 10px 0; font-size: 14px; color: var(--texto-2); text-shadow: 0 1px 0 #fff; text-align: center; }
.celulas {
  background: var(--celula); border: 1px solid #a9abad; border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.75); overflow: hidden;
}
.celula {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 0; border-top: 1px solid var(--linha); background: none; text-align: left; text-decoration: none; color: inherit;
}
.celula:first-child { border-top: 0; }
.celula .rotulo { flex: 1; font-weight: bold; }
.celula .valor { color: #385487; text-align: right; }
a.celula:active, button.celula:active { background: linear-gradient(#058cf5, #015ee6); color: #fff; }
a.celula:active .valor, button.celula:active .valor { color: #fff; }
.seta::after {
  content: ""; width: 8px; height: 8px; margin-left: 4px; flex: none;
  border-right: 3px solid #8c8c8c; border-top: 3px solid #8c8c8c; transform: rotate(45deg);
}
.celula input, .celula textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #385487; text-align: right;
}
.celula textarea { text-align: left; min-height: 88px; resize: vertical; }

/* cabeçalho do livro */
.cabecalho-livro { display: flex; gap: 14px; padding: 18px 14px 4px; align-items: flex-end; }
.cabecalho-livro .capa { flex: none; width: 108px; }
.cabecalho-livro .capa img, .cabecalho-livro .capa .capa-falsa {
  width: 108px; height: auto; box-shadow: 0 4px 9px rgba(0,0,0,.5), 0 0 1px rgba(0,0,0,.6);
}
.cabecalho-livro .capa .capa-falsa { height: 160px; }
.cabecalho-livro h2 { margin: 0 0 4px; font-size: 19px; line-height: 1.2; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.cabecalho-livro .autor { margin: 0 0 6px; color: #3c4a63; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.cabecalho-livro .miudo { margin: 0; font-size: 13px; color: #5a6478; text-shadow: 0 1px 0 rgba(255,255,255,.7); }

.estrelas { display: inline-flex; gap: 2px; }
.estrelas button { width: 34px; height: 34px; padding: 0; border: 0; background: none; font-size: 26px; line-height: 1; color: #c9c9c9; }
.estrelas button.cheia { color: #f2a71b; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.estrelas-mini { color: #f2a71b; letter-spacing: 1px; }
.estrelas-mini .vazia { color: #ccc; }

.progresso { flex: 1; height: 11px; border-radius: 6px; border: 1px solid #7a8798; background: linear-gradient(#cfd5dc, #f4f6f8); overflow: hidden; }
.progresso > i { display: block; height: 100%; background: linear-gradient(#8cc3ff, #2f7df6 60%, #1d62cf); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }

.bolinha {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  font: bold 15px Georgia, serif; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 2px rgba(0,0,0,.4);
  background-image: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0) 50%, rgba(0,0,0,.12) 51%, rgba(0,0,0,0));
}

/* ---------- botões grandes com vidro ---------- */
.botao {
  display: block; width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px;
  font-size: 18px; font-weight: bold; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  border: 1px solid rgba(0,0,0,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 0 rgba(255,255,255,.6);
  background-image: linear-gradient(rgba(255,255,255,.38), rgba(255,255,255,.08) 50%, rgba(0,0,0,0) 51%, rgba(255,255,255,.12));
}
.botao.verde { background-color: var(--verde-2); }
.botao.azul { background-color: #1f6be0; }
.botao.vermelho { background-color: var(--vermelho-2); }
.botao.cinza { background-color: #6d7682; }
.botao:active { filter: brightness(.85); }
.botao:disabled { opacity: .5; }
.botoes { display: grid; gap: 10px; margin: 18px 10px; }
.link-simples { border: 0; background: none; color: #2a4f8c; font-size: 15px; text-shadow: 0 1px 0 #fff; padding: 8px; }

/* ---------- busca (barra azul-acinzentada do iOS 6) ---------- */
.barra-busca {
  display: flex; gap: 8px; align-items: center; padding: 7px 8px;
  background: linear-gradient(#c5d0db, #a2b1c1); border-bottom: 1px solid #6f7f90;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.campo-busca {
  flex: 1; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border-radius: 15px; border: 1px solid #77818c; background: #fff; box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
.campo-busca svg { flex: none; width: 14px; height: 14px; color: #8e8e93; }
.campo-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.lista { background: #fff; }
.linha-livro {
  display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px 12px; border: 0;
  border-bottom: 1px solid #e0e0e0; background: #fff; text-align: left; text-decoration: none; color: inherit;
}
.linha-livro:active { background: linear-gradient(#058cf5, #015ee6); color: #fff; }
.linha-livro .mini { flex: none; width: 40px; height: 58px; display: grid; place-items: end center; }
.linha-livro .mini img, .linha-livro .mini .capa-falsa { max-width: 40px; max-height: 58px; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.linha-livro .mini .capa-falsa { height: 58px; padding: 4px 2px; }
.linha-livro .mini .capa-falsa b { font-size: 7px; }
.linha-livro .mini .capa-falsa i { display: none; }
.linha-livro .txt { flex: 1; min-width: 0; }
.linha-livro .txt b, .linha-livro .txt span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-livro .txt span { font-size: 14px; color: #6d6d72; }
.linha-livro:active .txt span { color: #fff; }
.cabeca-lista {
  padding: 2px 12px; font-size: 15px; font-weight: bold; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.35);
  background: linear-gradient(#a5b1ba, #b8c1c7); border-top: 1px solid #98a3ab; border-bottom: 1px solid #98a3ab;
}
.etiqueta {
  flex: none; padding: 2px 7px; border-radius: 9px; font-size: 12px; font-weight: bold; color: #fff;
  background: linear-gradient(#8fb7e8, #4d7fc0); box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.etiqueta.temos { background: linear-gradient(#7fd36e, #2f8a1e); }
.nao-temos { padding: 28px 18px 10px; text-align: center; color: #4c566c; text-shadow: 0 1px 0 #fff; }
.nao-temos b { display: block; font-size: 20px; margin-bottom: 4px; color: #2c3546; }

/* ---------- câmera ---------- */
.camera { position: relative; flex: 1; overflow: hidden; background: #000; }
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mira {
  position: absolute; left: 10%; right: 10%; top: 34%; height: 22%; pointer-events: none;
  border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45);
}
.mira::before, .mira::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  background:
    linear-gradient(#fff, #fff) left top / 26px 3px no-repeat, linear-gradient(#fff, #fff) left top / 3px 26px no-repeat,
    linear-gradient(#fff, #fff) right top / 26px 3px no-repeat, linear-gradient(#fff, #fff) right top / 3px 26px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 26px 3px no-repeat, linear-gradient(#fff, #fff) left bottom / 3px 26px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 26px 3px no-repeat, linear-gradient(#fff, #fff) right bottom / 3px 26px no-repeat;
}
.mira::after { background: linear-gradient(rgba(255,40,40,0), rgba(255,40,40,.9), rgba(255,40,40,0)) center / 100% 2px no-repeat; }
.dica-camera {
  position: absolute; left: 0; right: 0; top: calc(34% - 44px); text-align: center; color: #fff;
  font-size: 15px; font-weight: bold; text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.contador-leva {
  position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 12px;
  font-size: 13px; font-weight: bold; color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35);
}
.ligar-camera { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 24px; text-align: center; color: #fff; }
.ligar-camera p { margin: 0; color: #d8d8d8; }
.camera-acoes { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; }

/* folha que sobe com o livro lido (estilo action sheet do iOS 6) */
.folha {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 14px 14px calc(14px + var(--base));
  background: linear-gradient(rgba(68,74,88,.97), rgba(27,30,38,.98));
  border-top: 1px solid rgba(255,255,255,.35); box-shadow: 0 -4px 14px rgba(0,0,0,.5);
  color: #fff; transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.folha.aberta { transform: none; }
.folha .resumo { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.folha .resumo .mini { flex: none; width: 52px; }
.folha .resumo .capa-falsa { height: 76px; padding: 4px; }
.folha .resumo .capa-falsa b { font-size: 9px; }
.folha .resumo .capa-falsa i { display: none; }
.folha .resumo img { width: 52px; box-shadow: 0 2px 5px rgba(0,0,0,.6); }
.folha h3 { margin: 0 0 2px; font-size: 18px; text-shadow: 0 -1px 0 rgba(0,0,0,.6); }
.folha p { margin: 0; font-size: 14px; color: #d3d7df; }
.folha .botoes { margin: 0; }
.folha input {
  width: 100%; height: 40px; margin-bottom: 8px; padding: 0 10px; border-radius: 7px; border: 1px solid #222;
  background: #fff; color: #111; box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}

/* ---------- barra de abas (preta brilhante do iOS 6) ---------- */
.abas {
  display: flex; height: calc(49px + var(--base)); padding: 2px 4px var(--base);
  background: linear-gradient(#3c3c3c, #1a1a1a 50%, #050505 50%, #000);
  border-top: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.abas a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  margin: 2px; border-radius: 4px; text-decoration: none; color: #9a9a9a; font-size: 10px; font-weight: bold;
}
.abas a svg { width: 28px; height: 26px; }
.abas a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.abas a[aria-current="page"] svg { color: #4cb8ff; filter: drop-shadow(0 0 3px rgba(76,184,255,.6)); }

/* ---------- perfis e senha ---------- */
.tela-perfis { flex: 1; overflow-y: auto; display: grid; align-content: center; justify-items: center; gap: 26px; padding: calc(30px + var(--topo)) 18px 40px; }
.tela-perfis h1 { margin: 0; font-size: 26px; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.55); }
.grade-perfis { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 26px; max-width: 360px; }
.perfil {
  display: grid; justify-items: center; gap: 8px; width: 88px; padding: 0; border: 0; background: none;
  color: #fff; font-weight: bold; font-size: 15px; text-shadow: 0 -1px 0 rgba(0,0,0,.6);
}
.perfil .bolinha { width: 78px; height: 78px; font-size: 34px; border: 3px solid rgba(255,248,235,.9); box-shadow: 0 3px 7px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.5); }
.perfil:active .bolinha { filter: brightness(.85); }
.alerta {
  width: min(300px, 100%); padding: 18px 16px 16px; border-radius: 12px; text-align: center; color: #fff;
  border: 2px solid rgba(255,255,255,.8);
  background: linear-gradient(rgba(30,44,90,.92), rgba(12,22,58,.94));
  box-shadow: 0 6px 18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.35);
  background-image: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,0) 40%);
}
.alerta h1 { font-size: 19px; margin: 0 0 4px; color: #fff; }
.alerta p { margin: 0 0 12px; font-size: 14px; color: #d9def0; }
.alerta input {
  width: 100%; height: 38px; margin-bottom: 12px; padding: 0 10px; border-radius: 5px; border: 1px solid #1a1a1a;
  background: #fff; color: #111; box-shadow: inset 0 1px 2px rgba(0,0,0,.45);
}
.alerta .erro { color: #ffb3ad; min-height: 1.2em; }

/* aviso que aparece e some (HUD do iOS) */
.hud {
  position: fixed; left: 50%; top: 42%; z-index: 20; transform: translate(-50%, -50%);
  min-width: 150px; max-width: 80vw; padding: 16px 18px; border-radius: 12px; text-align: center;
  font-weight: bold; color: #fff; background: rgba(0,0,0,.75); pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.hud.visivel { opacity: 1; }
.hud .icone { display: block; font-size: 30px; line-height: 1; margin-bottom: 6px; }

/* folha de confirmação */
.vel { position: fixed; inset: 0; z-index: 15; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
.vel .folha { position: relative; transform: none; width: 100%; }
.vel .folha p { margin-bottom: 12px; text-align: center; }

.notas-lista .celula { flex-direction: column; align-items: stretch; gap: 4px; }
.notas-lista .meta { font-size: 12px; color: #8a8a8f; }
.notas-lista blockquote { margin: 0; padding-left: 10px; border-left: 3px solid #c9a46b; font-family: Georgia, serif; font-style: italic; }
.sinopse { padding: 12px; font-size: 15px; line-height: 1.45; white-space: pre-line; }
.sinopse.curta { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }

@media (min-width: 640px) {
  .prateleira { grid-template-columns: repeat(5, 1fr); }
  #app { max-width: 820px; margin: 0 auto; box-shadow: 0 0 30px rgba(0,0,0,.4); }
}
@media (prefers-reduced-motion: reduce) { .folha, .hud { transition: none; } }
