/* prts.si loader — prefill → decode inference boot animation.
   Black, minimal. Component fills its positioned parent. */
.prts-boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  transition: opacity 0.45s ease;
}
.prts-boot.done { opacity: 0; pointer-events: none; }

.prts-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #000;
  color: #c9e6c9;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  user-select: none;
  cursor: pointer;
}

.pl-head {
  color: #263326;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
}

.pl-grid {
  display: grid;
  gap: 3px;
  width: min(300px, 62vw);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pl-grid.settle { opacity: 0.2; transform: scale(0.96); }

.pl-cell {
  aspect-ratio: 1 / 1;
  border: 1px solid #101a10;
  border-radius: 1px;
}
.pl-cell.filled {
  border-color: transparent;
  animation: pl-pop 0.3s cubic-bezier(0.2, 1.7, 0.4, 1) backwards;
}
@keyframes pl-pop {
  0%   { transform: scale(0);    opacity: 0; }
  55%  { transform: scale(1.4);  opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

.pl-status {
  color: #486048;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  min-height: 1.4em;
}
.pl-status b { color: #39ff6e; font-weight: 400; }

.pl-decode {
  color: #eaffea;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  min-height: 1.7em;
  text-shadow: 0 0 18px rgba(57, 255, 110, 0.35);
}
.pl-decode .tk { animation: pl-tk 0.25s ease backwards; display: inline-block; white-space: pre; }
@keyframes pl-tk { from { opacity: 0; transform: translateY(4px); } }

.pl-cursor {
  display: inline-block;
  width: 0.58em;
  height: 1.02em;
  background: #39ff6e;
  vertical-align: -0.14em;
  margin-left: 2px;
  animation: pl-blink 1.05s steps(1) infinite;
}
@keyframes pl-blink { 50% { opacity: 0; } }

.pl-meta { color: #263326; font-size: 0.7rem; letter-spacing: 0.08em; min-height: 1.2em; }
.pl-skip {
  position: absolute;
  bottom: 1.6rem;
  color: #1d2b1d;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}
