/* ============================================================
   Arcade levers
   ============================================================ */
.levers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lever {
  --pull: 0;
  --tone: #ff1f3d;
  --tone-dark: #8f0f0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 14px;
  border-radius: 24px;
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #fff;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.lever.tone-violet { --tone: #8d6bff; --tone-dark: #45309c; }
.lever-base {
  position: relative;
  width: 74px;
  height: 120px;
}
.lever-slot {
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 6px;
  width: 22px;
  margin-left: -11px;
  border-radius: 11px;
  background: #050505;
  box-shadow: inset 0 3px 6px #000, 0 1px 0 #333;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.lever-slot i {
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: #3a3a3a;
}
.lever-arm {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
  transform: translateY(calc(var(--pull) * 82px));
}
.lever-stick {
  position: absolute;
  left: -4px;
  top: 18px;
  width: 8px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(90deg, #888, #eee 40%, #777);
}
.lever-ball {
  position: absolute;
  left: -24px;
  top: -14px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0 9%, transparent 28%), radial-gradient(circle at 50% 60%, var(--tone), var(--tone-dark));
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.55), 0 0 calc(10px + var(--pull) * 26px) color-mix(in srgb, var(--tone) 70%, transparent);
  transition: scale 0.25s var(--bounce);
}
.lever.held .lever-ball { scale: 1.08; }
.lever.fired .lever-ball { animation: lever-flash 0.26s steps(2) 2; }
@keyframes lever-flash {
  50% { filter: brightness(1.8); }
}
.lever-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.lever-text b {
  font: 900 20px/1 var(--display);
  font-stretch: 70%;
  color: var(--tone);
}
.lever-text small {
  font: 8px/1.3 var(--pixel);
  color: #9a9a9a;
  letter-spacing: 0.05em;
}
