/* LOADFRAME1_20261115 (N: "the page does not load until everything loads, no matter what, and just make the page load instantly").
   One shared frame for every page that is built by scripts. The server (server/frame1.js) adds this file and frame1.js to the top of
   such pages. While a page is still building, its content is hidden and one small spinner shows at once, so a person never sees bare
   "Loading", a piece at the far left, or a card that jumps. frame1.js lifts the hold when the page has stopped changing.
   Safety: even if the script dies, the page shows by itself after 9 seconds (the animation below, no script needed). */
html[data-fr1="wait"] body > *:not(script):not(style):not(link):not(template):not(noscript) {
  visibility: hidden;
  animation: fr1-fail 0s linear 9s forwards;
}
@keyframes fr1-fail { to { visibility: visible; } }
html[data-fr1="wait"]::after {
  content: "";
  position: fixed; left: 50%; top: 50%;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid rgba(128, 128, 128, .28);
  border-top-color: #e2563b;
  animation: fr1-spin .8s linear infinite;
  z-index: 2147483000;
}
@keyframes fr1-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html[data-fr1="wait"]::after { animation-duration: 2.4s; } }
/* a piece that was not ready in 3 seconds: fixed size message with one button, readable on a light or a dark page */
.fr1-piece {
  box-sizing: border-box; width: 100%; max-width: 420px; min-height: 120px; margin: 16px auto;
  padding: 18px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #fff; color: #222; border: 1px solid #ddd; text-align: center;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.fr1-piece .fr1-retry {
  display: inline-block; height: 36px; padding: 0 16px; margin: 0;
  border-radius: 999px; border: 0; background: #111; color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
