/* UI widgets */

/* -------------------- Controls hint -------------------- */

#controlsHint {
  margin-top: 14px;
  padding: 12px 22px;
  border-radius: 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7));
  border: 1px solid rgba(247, 228, 178, 0.4);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-family: var(--font-ui);
  font-size: 1rem;
  color: #fff6dc;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
  animation: hintGlow 3s ease-in-out infinite alternate;
}

@keyframes hintGlow {
  from {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.7),
      0 0 0 rgba(255, 200, 120, 0.2);
  }

  to {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.7),
      0 0 20px rgba(255, 200, 120, 0.3);
  }
}

#controlsHint p {
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

#controlsHint .key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-system);
  font-size: 1.3rem;
  font-weight: 800;
  min-width: 36px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(to bottom, #3b2a16, #2a1c0f);
  border: 1px solid rgba(255, 200, 120, 0.4);
  color: #f7e4b2;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

#controlsHint .key-move {
  color: #f2c36b;
  text-shadow: 0 0 4px rgba(242, 195, 107, 0.5);
}

#controlsHint .key-jump {
  color: #7fc8ff;
  text-shadow: 0 0 4px rgba(127, 200, 255, 0.5);
}

#controlsHint .key-throw {
  color: #ff6b4a;
  text-shadow: 0 0 4px rgba(255, 107, 74, 0.5);
}

/* Legal bar container */

#legalBar {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}
