/* ==========================================================================
   Snack Snake
   ========================================================================== */

.stage {
  background: #1c0a0b;
}

.stage.hit {
  animation: stage-hit 0.45s ease;
}

@keyframes stage-hit {
  0%,
  100% {
    box-shadow: var(--shadow-lg);
  }
  30% {
    box-shadow:
      0 0 0 4px var(--lose),
      var(--shadow-lg);
  }
}

/* -------------------------------------------------------------- legend --- */

.legend {
  max-width: 440px;
  margin: 26px auto 0;
  padding: 18px 20px;
}

.legend h3 {
  font-size: 1rem;
  color: var(--frimax-amber);
  margin-bottom: 12px;
}

.legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.legend li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.legend b {
  color: var(--text);
}

.dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.dot-chip {
  background: #f5b301;
}

.dot-gold {
  background: conic-gradient(
    var(--frimax-amber),
    var(--frimax-cream),
    var(--frimax-amber),
    var(--frimax-green)
  );
}

.dot-wall {
  background: repeating-linear-gradient(
    45deg,
    var(--frimax-green) 0 4px,
    var(--frimax-green-deep) 4px 8px
  );
}
