/* ============================================================
   NAVIGATION
   Transparent function key overlays on the pixel art keyboard
   ============================================================ */

.fn-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(3px, 0.4vw, 6px) clamp(5px, 1vw, 14px);
  background: rgba(30, 25, 18, 0.75);
  border: 1px solid rgba(160, 140, 110, 0.3);
  border-radius: 3px;
  color: rgba(200, 190, 170, 0.9);
  font-family: 'VT323', 'Courier New', monospace;
  font-size: clamp(9px, 1vw, 13px);
  cursor: pointer;
  user-select: none;
  transition: background 0.05s, transform 0.05s;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.fn-key:hover {
  background: rgba(60, 50, 35, 0.85);
  color: #dddd44;
  border-color: rgba(221, 221, 68, 0.4);
}

.fn-key:active {
  transform: translateY(1px);
}

.fn-key.active {
  background: rgba(60, 50, 35, 0.85);
  color: #dddd44;
  border-color: rgba(221, 221, 68, 0.5);
}

.fn-key .key-label {
  font-weight: bold;
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-size: clamp(8px, 0.9vw, 12px);
}

.fn-key .key-hint {
  font-size: 0.65em;
  opacity: 0.4;
  margin-top: 1px;
}

/* ============================================================
   KEYBOARD HINTS OVERLAY
   ============================================================ */

.keyboard-hints {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 5, 0.94);
  border: 1px solid #44dddd;
  border-radius: 4px;
  padding: 8px 14px;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: clamp(10px, 1vw, 13px);
  color: #cccccc;
  white-space: nowrap;
  display: none;
  z-index: 100;
  pointer-events: none;
}

.keyboard-hints.visible {
  display: block;
}

.keyboard-hints .hint-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
}

.keyboard-hints .hint-key {
  color: #dddd44;
  min-width: 70px;
}

.keyboard-hints .hint-action {
  color: #44dddd;
}
