/* Print / PDF (Ctrl+P and `npm run pdf`): every slide on its own 1920×1080 page, in its final state,
   over a static copy of the living world (js/world.js sets --world-still). */
@page { size: 1920px 1080px; margin: 0; }

@media print {
  html, body { width: 1920px; height: auto; overflow: visible; background: var(--eerie); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #viewport { position: static; overflow: visible; background: none; }
  #stage { position: static; transform: none !important; width: 1920px; height: auto; overflow: visible; }
  .world, .chrome, .toast { display: none !important; }

  #stage > .slide {
    position: relative; inset: auto; display: block;
    visibility: visible !important; opacity: 1 !important; transform: none !important; pointer-events: none;
    break-after: page; page-break-after: always; break-inside: avoid;
    --ga: 0% 100%; --gb: 100% 0%;
    background-color: var(--eerie);
    background-image:
      var(--world-still, none),
      radial-gradient(1000px 760px at var(--ga), rgba(255, 119, 5, .5), rgba(255, 119, 5, 0) 70%),
      radial-gradient(900px 700px at var(--gb), rgba(255, 62, 102, .38), rgba(255, 62, 102, 0) 70%);
    background-size: 1920px 1080px, auto, auto;
    background-repeat: no-repeat;
  }
  #stage > .slide:last-of-type { break-after: auto; page-break-after: auto; }
  #stage > .slide[data-glow="tl-br"] { --ga: 0% 0%; --gb: 100% 100%; }
  #stage > .slide[data-glow="br-tl"] { --ga: 100% 100%; --gb: 0% 0%; }
  #stage > .slide[data-glow="center"] { --ga: 30% 65%; --gb: 70% 35%; }
  #stage > .slide[data-theme="light"] {
    background-color: var(--seasalt);
    background-image:
      radial-gradient(900px 600px at -6% 106%, rgba(255, 119, 5, .10), rgba(255, 119, 5, 0) 70%),
      radial-gradient(800px 560px at 106% -8%, rgba(255, 62, 102, .08), rgba(255, 62, 102, 0) 70%);
    background-size: auto;
  }

  /* final animation states, whatever was mid-flight */
  .t-title, .t-body, .slide-visual > *, [data-enter], .divider-num { opacity: 1 !important; transform: none !important; }
  svg.t-outline text { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}
