/* Passaporte da expedição (DOM). Tamanho lógico do livro: 256×256 —
   tudo posicionado em % e fontes em cqw para escalar com o container. */

.livro-envolvente {
  container-type: inline-size;
  width: min(512px, calc(100vw - 40px));
}

.livro {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.livro > * {
  position: absolute;
}

.livro-imagem {
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.livro-caravela {
  background-repeat: no-repeat;
  background-size: 400% 100%;
  background-position: 0 0;
  image-rendering: pixelated;
}

.livro-nome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--fonte-texto);
  font-weight: 500;
  color: var(--texto);
  font-size: 10px;
  font-size: 3.9cqw;
  line-height: 1.05;
  overflow: hidden;
  text-align: center;
}

.livro-nome-linha {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.livro-data {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--fonte-texto);
  color: var(--textoSuave);
  font-size: 8px;
  font-size: 3.1cqw;
  overflow: hidden;
  white-space: nowrap;
}

.livro-carimbo img,
.livro-marca img {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.livro-contagem {
  display: flex;
  align-items: center;
  font-family: var(--fonte-texto);
  font-weight: 600;
  color: var(--texto);
  font-size: 8px;
  font-size: 3.2cqw;
}
