  /* Carta del Bosque: an antique map of the Enchanted Forest painted behind the Bestiario's cover.
     The painter dims itself under every line of text and fades its own foot, so the CSS only places it.
     .hero-paint-live is the small overlay the painter adds for the glow, twinkles and compass needle. */
  .hero-paint,.hero-paint-live{
    position:absolute;top:0;left:0;width:100%;height:0;
    /* while a narrower relayout is pending, a stale canvas must never widen the page (phones would zoom out) */
    max-width:100%;
    z-index:0;pointer-events:none;display:block;
    opacity:0;transition:opacity .5s ease;
    /* own compositing layers: redrawing them never repaints the page's paper texture beneath */
    will-change:transform;
  }
  .hero-paint-live{transition-duration:1.2s}
  .hero-paint.is-on,.hero-paint-live.is-on{opacity:1}
  @media (prefers-reduced-motion: reduce){ .hero-paint{transition:none} .hero-paint-live{display:none} }

  /* La Carta continúa: the world below the cover. Planes of small painted tiles behind the page (the far washes lag
     most, the margin groves a little, the marginalia ride the paper), the map's neatline down both margins, and the
     life (fireflies, falling leaves, the moth, needles, glows) as small elements moved by transform only. All of it
     sits under the page content, except the foreground fronds: they run ahead of the scroll ABOVE the page, cut by
     the painter to the margins so they never touch text, cards, photos or buttons. */
  .carta-world{position:absolute;top:0;left:0;width:100%;height:0;overflow:hidden;pointer-events:none;z-index:0}
  .carta-front{z-index:6}
  .carta-plane,.carta-sub{position:absolute;top:0;left:0;width:100%;height:100%}
  .carta-far,.carta-back,.carta-near{will-change:transform}
  .carta-life .cl{position:absolute;left:0;top:0;pointer-events:none;opacity:0;will-change:transform,opacity}
  .carta-world canvas{position:absolute;display:block;opacity:0;transition:opacity .7s ease}
  .carta-world canvas.is-on{opacity:1}
  .carta-world canvas.now{transition:none}
  .carta-grat{
    position:absolute;width:6.8px;box-sizing:border-box;
    border-left:.8px solid rgba(107,68,35,.36);border-right:.8px solid rgba(107,68,35,.36);
    background:repeating-linear-gradient(to bottom, rgba(107,68,35,.25) 0 28px, transparent 28px 56px);
    background-clip:padding-box;
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 150px);mask-image:linear-gradient(to bottom, transparent 0, #000 150px);
  }
  @media (prefers-reduced-motion: reduce){
    .carta-life{display:none}
    .carta-far,.carta-back,.carta-near{transform:none!important;will-change:auto}
    .carta-world canvas{transition:none}
  }
