/* First-paint loader: no images, canvas, timers, or animation libraries. */
.bites-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: #f7f1e2;
  color: #49634e;
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow: hidden;
  font-family: Arial, sans-serif;
}
.bites-loading.is-ready {
  opacity: 0;
  pointer-events: none;
}

.cone-matrix {
  display: grid;
  grid-template-columns: repeat(7, 28px);
  gap: 17px 20px;
  padding: 24px 16px;
  contain: layout paint;
}
.matrix-cone {
  width: 28px;
  height: 45px;
  color: #adc1a0;
  animation: cone-tide 2.8s ease-in-out infinite;
  animation-delay: var(--phase);
  transform-origin: 50% 70%;
}
.matrix-cone svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes cone-tide {
  0%,
  12%,
  76%,
  100% {
    transform: translateY(0) rotate(0deg);
    color: #b5c6a6;
    opacity: 0.55;
  }
  33% {
    transform: translateY(-9px) rotate(-7deg);
    color: #d895a0;
    opacity: 1;
  }
  49% {
    transform: translateY(3px) rotate(5deg);
    color: #dcae65;
    opacity: 1;
  }
  61% {
    transform: translateY(-2px) rotate(-2deg);
    color: #80b4ae;
    opacity: 0.9;
  }
}
@media (max-width: 480px) {
  .cone-matrix {
    gap: 13px 12px;
    grid-template-columns: repeat(7, 24px);
  }
  .matrix-cone {
    width: 24px;
    height: 39px;
  }
  .bites-loading {
    gap: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .matrix-cone {
    animation: none;
    opacity: 0.8;
  }
  .matrix-cone:nth-child(3n) {
    color: #d895a0;
  }
  .matrix-cone:nth-child(4n) {
    color: #dcae65;
  }
  .bites-loading {
    transition: none;
  }
}
