/* Particle star loading stage replacing the CSS border spinner without altering .paper A4 shape. */
@media screen {
  .loading-box:has(.spinner) {
    gap: calc(16px / var(--preview-zoom, 1));
    min-height: calc(360px / var(--preview-zoom, 1));
  }

  .loading-box .spinner {
    position: relative;
    width: calc(200px / var(--preview-zoom, 1));
    height: calc(200px / var(--preview-zoom, 1));
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
    overflow: visible;
    flex-shrink: 0;
  }

  .loading-box .spinner > canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
  }

  .loading-box:has(.spinner) .loading-text {
    font-size: calc(15px / var(--preview-zoom, 1));
    line-height: 1.6;
    color: var(--text2);
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 760px) {
  .loading-box .spinner {
    width: calc(176px / var(--preview-zoom, 1));
    height: calc(176px / var(--preview-zoom, 1));
  }

  .loading-box:has(.spinner) .loading-text {
    font-size: calc(14px / var(--preview-zoom, 1));
  }
}

@media print {
  .loading-box:has(.spinner) {
    display: none !important;
  }
}
