/* First-visit loading screen: the two halves of the F snap together, stop dead, then it cuts out.
   Hidden unless loader.js sets .fx-play, so with no JS there is no loader at all. Once started, CSS alone
   removes it, and pointer-events:none means it never blocks a click. */
.fx-loader {
  display: none;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  pointer-events: none;
  animation: fx-clear 1ms linear 900ms both;
}
.fx-play .fx-loader { display: grid; }

.fx-loader svg {
  width: clamp(72px, 12vmin, 112px);
  height: auto;
  overflow: visible;
}
.fx-top { animation: fx-top 380ms cubic-bezier(0.7, 0, 1, 0.6) both; }
.fx-bot { animation: fx-bot 380ms cubic-bezier(0.7, 0, 1, 0.6) both; }
.fx-loader svg { animation: fx-hit 120ms ease-out 380ms both; }

@keyframes fx-top {
  from { transform: translate(-22%, -16%) rotate(-5deg); opacity: 0; }
  35% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
@keyframes fx-bot {
  from { transform: translate(22%, 16%) rotate(5deg); opacity: 0; }
  35% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
/* The hit: a very short jolt. */
@keyframes fx-hit {
  0% { transform: scale(1.04); }
  100% { transform: none; }
}
@keyframes fx-clear {
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-play .fx-loader { display: none; }
}
@media print {
  .fx-play .fx-loader { display: none; }
}
