/* ==========================================================================
   Crate Stack
   ========================================================================== */

.stage {
  background: #071a2c;
  cursor: pointer;
}

.stage.perfect {
  animation: stage-perfect 0.4s ease;
}

@keyframes stage-perfect {
  0%,
  100% {
    box-shadow: var(--shadow-lg);
  }
  35% {
    box-shadow:
      0 0 0 4px var(--frimax-amber),
      0 0 30px rgba(245, 166, 35, 0.5),
      var(--shadow-lg);
  }
}

.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);
}

.mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 5px;
  border: 2px solid var(--frimax-amber);
  background: linear-gradient(
    180deg,
    var(--frimax-green),
    var(--frimax-green-deep)
  );
}

.mark-perfect {
  border-color: var(--win);
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.5);
}

.mark-miss {
  border-color: var(--lose);
  opacity: 0.5;
}
