.hotkey-legend {
  position: absolute;
  bottom: 50px;
  right: 20px;
  width: 320px;
  max-height: calc(100% - 70px);
  overflow-y: auto;
  background: rgba(50, 50, 50, 0.9);
  color: #fff;
  font-size: 14px;
  padding: 15px;
  border-radius: 6px;
  display: none;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 2000;
}
.hotkey-legend h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.hotkey-legend ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hotkey-legend ul li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.hotkey-legend ul li:last-child {
  border-bottom: none;
}
.hotkey-legend .legend-footer {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #ff8000;
}
.debug-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff8000;
  color: #000;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2000;
  display: none;
}
.info-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 1500;
  display: none;
  max-width: 300px;
  line-height: 1.5;
}
.replay-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 20px;
  border: 2px solid #ff8000;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  z-index: 1500;
}
.replay-button:hover {
  background: #ff8000;
}
.resume-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(50, 50, 50, 0.95);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  z-index: 1500;
  font-size: 16px;
}
.resume-prompt button {
  margin: 10px 5px 0;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.resume-prompt button:first-of-type {
  background: #ff8000;
  color: #fff;
}
.resume-prompt button:last-of-type {
  background: #444;
  color: #fff;
}
